Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21040

Extra docker run args are ignored when provided in YAML spec

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 7.2.0, 7.1.2
    • 7.1.0, 7.1.1
    • Bamboo Specs
    • None

    Description

      Issue Summary

      Extra docker run args are ignored when provided in YAML spec

      Steps to Reproduce

      1. 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:

      1. Shutdown the Bamboo server
      2. Locate <bamboo_install_dir>/atlassian_bamboo/WEB-INF/lib/atlassian-bamboo-import-export-7.1.1.jar.
      3. Replace it with the jar file attached to this ticket (it's recommended to make a backup of the original file)
      4. Start the server again
      5. Re-scan any YML Specs affected by this issue.

      Attachments

        Issue Links

          Activity

            People

              mgardias Marcin Gardias
              c64f33b2bce3 Yevhen
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: