Docker runner: removing bamboo.tmp.directory volume breaks job tasks

XMLWordPrintable

    • Type: Bug
    • Resolution: Low Engagement
    • Priority: Low
    • None
    • Affects Version/s: 6.4.0
    • Component/s: Docker Runner
    • 1
    • Severity 3 - Minor

      Issue Summary

      Users can deliberately remove volumes that are necessary for the correct operation of a job tasks. If they are needed they should not be removable.

      Steps to Reproduce

      1. Create a job with docker runner
      2. Create a script task with a simple command
      3. Remove the bamboo.tmp.directory volume

      Actual Results

      The script task will not work due to the fact that the docker runner will not find it.

      /tmp/runInDocker5641418594940319039.sh: 4: /tmp/runInDocker5641418594940319039.sh: /var/atlassian/application-data/bamboo/temp/DR-DRT-JOB1-2-ScriptBuildTask-6641718064966873655.sh: not found
      

      Workaround

      Go to Job configuration >> Docker >> Volumes and make sure you have the following volumes configured:

      Host directory Container directory
      ${bamboo.tmp.directory} ${bamboo.tmp.directory}
      ${bamboo.working.directory} ${bamboo.working.directory}

            Assignee:
            Unassigned
            Reporter:
            Daniel Santos (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: