When configuring a plan, you may want to specify variables to be used in the build process. For details on how variables are used, see Bamboo variables.

Global variables are one type of variable that is available to you. Global variables are defined across your entire Bamboo instance, and have the same value for every plan that is built by Bamboo. If you want to define a variable for a specific plan rather than across all plans, define a plan variable as described in Defining plan variables.

Global variables can be accessed by using ${bamboo.globalVarName}. Global variables can also be overridden at runtime when running a manual build. For more information, see Running a plan build manually.

To access the global variables page:

  1. Click the  icon and select Bamboo admin.
  2. Click Global Variables, in the left navigation column under the 'Build Resources' section.
  3. Add, update or delete the global variables, as desired:
    • Click Add to add a new variable once you have entered the key and value for it.
    • Updates to existing rows will be saved as you move between cells in the table.
    • Click the trash can to delete a variable.

Screenshot: Global variables


 

3 Comments

  1. Anonymous

    Can I use bash script plugin to update global variable?

    Could you describe me solution?

  2. Anonymous

    I have the same problem like mentioned above.

    I want to configure first job in the plan to set custom.svn.revision.number   that all other jobs and stages will use later.

    Is it possible to override custom.svn.revision.number inside the task while it is executing whether the task is bash script or some other type of the task.

    Aleksandar

  3. Anonymous

    is it possible to use native SVN command on remote agent incited of SVNKIT