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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.4.0
    • Docker Runner
    • None

    Description

      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}

      Attachments

        Activity

          People

            Unassigned Unassigned
            dsantos Daniel Santos
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: