-
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.
Hello e7f248f097fe, thank you for comment. It will be improved at next versions of documentation