-
Bug
-
Resolution: Fixed
-
Low
-
7.1.0, 7.1.1
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
Extra docker run args are ignored when provided in YAML spec
Steps to Reproduce
- Import YAML spec in a repository with bamboo-specs/bamboo.yaml that has:
Default Job: key: JOB1 docker: image: ubuntu volumes: ${bamboo.working.directory}: ${bamboo.working.directory} ${bamboo.tmp.directory}: ${bamboo.tmp.directory} docker-run-arguments: - --net=host
2. Run specs scan.
Expected Results
The created plan, namely docker runner config should container extra args --net=host
Actual Results
Docker run args are ignored. The resulting yaml looks like this:
dockerConfiguration: dockerRunArguments: [] enabled: true image: ubuntu volumes: ${bamboo.working.directory}: ${bamboo.working.directory} ${bamboo.tmp.directory}: ${bamboo.tmp.directory}
Workaround
Install attached patch:
- Shutdown the Bamboo server
- Locate <bamboo_install_dir>/atlassian_bamboo/WEB-INF/lib/atlassian-bamboo-import-export-7.1.1.jar.
- Replace it with the jar file attached to this ticket (it's recommended to make a backup of the original file)
- Start the server again
- Re-scan any YML Specs affected by this issue.
[BAM-21040] Extra docker run args are ignored when provided in YAML spec
Remote Link | New: This issue links to "Page (Confluence)" [ 599724 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 563506 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 510199 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Waiting for Release [ 12075 ] | New: Closed [ 6 ] |
Description |
Original:
h3. Issue Summary
Extra docker run args are ignored when provided in YAML spec h3. Steps to Reproduce # Import YAML spec in a repository with bamboo-specs/bamboo.yaml that has: {code:java} Default Job: key: JOB1 docker: image: ubuntu volumes: ${bamboo.working.directory}: ${bamboo.working.directory} ${bamboo.tmp.directory}: ${bamboo.tmp.directory} docker-run-arguments: - --net=host {code} 2. Run specs scan. h3. Expected Results The created plan, namely docker runner config should container extra args --net=host h3. Actual Results Docker run args are ignored. The resulting yaml looks like this: {noformat} dockerConfiguration: dockerRunArguments: [] enabled: true image: ubuntu volumes: ${bamboo.working.directory}: ${bamboo.working.directory} ${bamboo.tmp.directory}: ${bamboo.tmp.directory} {noformat} h3. Workaround Currently there is no known workaround for this behavior. A workaround will be added here when available |
New:
h3. Issue Summary
Extra docker run args are ignored when provided in YAML spec h3. Steps to Reproduce # Import YAML spec in a repository with bamboo-specs/bamboo.yaml that has: {code:java} Default Job: key: JOB1 docker: image: ubuntu volumes: ${bamboo.working.directory}: ${bamboo.working.directory} ${bamboo.tmp.directory}: ${bamboo.tmp.directory} docker-run-arguments: - --net=host {code} 2. Run specs scan. h3. Expected Results The created plan, namely docker runner config should container extra args --net=host h3. Actual Results Docker run args are ignored. The resulting yaml looks like this: {noformat} dockerConfiguration: dockerRunArguments: [] enabled: true image: ubuntu volumes: ${bamboo.working.directory}: ${bamboo.working.directory} ${bamboo.tmp.directory}: ${bamboo.tmp.directory} {noformat} h3. Workaround Install attached patch: # Shutdown the Bamboo server # Locate <bamboo_install_dir>/atlassian_bamboo/WEB-INF/lib/atlassian-bamboo-import-export-7.1.1.jar. # Replace it with the jar file attached to this ticket (it's recommended to make a backup of the original file) # Start the server again # Re-scan any YML Specs affected by this issue. |
Attachment | New: atlassian-bamboo-import-export-7.1.1-bam-21040.jar [ 392565 ] |
Support reference count | New: 1 |
Fix Version/s | New: 7.2.0 [ 92133 ] |
Hello e7f248f097fe, thank you for comment. It will be improved at next versions of documentation