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

Deployment variable not available

    XMLWordPrintable

Details

    Description

      I have configured a deployment project and it has two tasks, one will just checkout the source code, and the other one is a Script Task that will only run this inline script:

      echo ${bamboo.deploy.release}
      

      The previous version (v24) of the Variables for deployment environments document mentioned this is a standard Bamboo variable:

      bamboo.deploy.release The name of the release that is being deployed.

      However, the deploy fails and this is the deployment log:

      05-Aug-2013 19:23:15	Build Deployment of 'release-1' on 'MyEnv' started building on agent Default Agent
      05-Aug-2013 19:23:15	Build working directory is /Users/atl/Documents/Atlassian/atlassian-bamboo-5.0/bamboo_home/xml-data/build-dir/1605633-1736705
      05-Aug-2013 19:23:15	Executing build Deployment of 'release-1' on 'MyEnv'
      05-Aug-2013 19:23:15	Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'
      05-Aug-2013 19:23:15	Cleaning working directory '/Users/atl/Documents/Atlassian/atlassian-bamboo-5.0/bamboo_home/xml-data/build-dir/1605633-1736705'
      05-Aug-2013 19:23:15	Finished task 'Clean working directory task'
      05-Aug-2013 19:23:15	Starting task 'My Script Task' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
      05-Aug-2013 19:23:15	
      Beginning to execute external process for build 'Deployment of 'release-1' on 'MyEnv''
       ... running command line: 
      /bin/sh /var/folders/1x/j1w8m0lx4l7g2gypdbr7m5400000gp/T/1605633-1736705-2064385-ScriptBuildTask-5090082307255814824.sh
       ... in: /Users/atl/Documents/Atlassian/atlassian-bamboo-5.0/bamboo_home/xml-data/build-dir/1605633-1736705
       ... using extra environment variables: 
      bamboo_planRepository_type=svn
      bamboo_shortPlanName=Plan
      bamboo_planName=Project - Plan
      bamboo_planKey=PROJ-PLAN
      bamboo_planRepository_revision=19
      bamboo_buildResultKey=PROJ-PLAN-3
      bamboo_planRepository_1_revision=19
      bamboo_planRepository_1_type=svn
      bamboo_planRepository_1_branchName=SVN
      bamboo_planRepository_1_name=Subversion
      bamboo_buildNumber=3
      bamboo_planRepository_name=Subversion
      bamboo_shortPlanKey=PLAN
      bamboo_planRepository_branchName=SVN
      05-Aug-2013 19:23:15	/var/folders/1x/j1w8m0lx4l7g2gypdbr7m5400000gp/T/1605633-1736705-2064385-ScriptBuildTask-5090082307255814824.sh: line 1: ${bamboo.deploy.release}: bad substitution
      05-Aug-2013 19:23:15	Failing task since return code of [/bin/sh /var/folders/1x/j1w8m0lx4l7g2gypdbr7m5400000gp/T/1605633-1736705-2064385-ScriptBuildTask-5090082307255814824.sh] was 1 while expected 0
      05-Aug-2013 19:23:15	Finished task 'My Script Task'
      05-Aug-2013 19:23:15	Finalising the build...
      05-Aug-2013 19:23:15	Stopping timer.
      05-Aug-2013 19:23:15	Build 1605633-1736705-2064385 completed.
      05-Aug-2013 19:23:16	Finished processing deployment result Deployment of 'release-1' on 'MyEnv'
      

      As can be seen, the variable is not being parsed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fkraemer Felipe Kraemer
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: