Related Bamboo Support request: BSP-40224 (https://getsupport.atlassian.com/servicedesk/customer/portal/10/BSP-40224).
Our team has noticed that when Bamboo server executes Java specs SCAN (without underlying repository Java class update) - permissions (Plan permissions of Buld plans and Environment permissions of Deployment plans) do not get set/rebuilt.
We have noticed two cases when this occurs:
- Using "Scan" button within Linked Repositories --> Specs Status tab
- PUSH'ing any changes to the Linked Repository - that are NOT within a given plan's Java spec
... in other words - when Bamboo server executes specs using SCAN instead of executing Maven build.
This issue can be observed/replicated by following:
- Create brand new (never existed) plans from repository-stored specs (using source code changes PUSH to a spec-enabled Linked Repository).
- observe that plan Permissions match the ones defined in the specs
- Delete some (or all) of the created plans in Bamboo
- Without PUSH'ing any changes to the repo - force plans being rebuilt using Linked Repositories --> Specs Status tab's "Scan" button
- observe that plan(s) that have not been deleted - remain unchanged, but plan(s) that have been deleted (in step #2) get re-created, but without Permissions set
- Making *any* change to a Java specs file corresponding to a given plan, and PUSH'ing changes to the repo - recreates/fixes Permissions
Same exact behavior occurs when instead of using "Scan" button (step #3 above) - some changes *other than within deleted plan's Java spec file* are PUSH'ed to the repository (deleted plan's Java spec file is unchanged).
So... after discovering this issue, we need to find a way to enforce Maven build from Java specs file - each time SCAN is executed (both cases explained above).
Question:
Does anyone know how to force Bamboo specs SCAN rebuild plan (and Permissions) from Java specs file - even if no changes are pushed to the specs?