Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Variables can be used throughout Continua CI and can be created at all levels of Continua CI. They are used to pass dynamic values into the build process. When a build is ready to run, it pulls the value from one of the following variables:

  • Environment variables. These are pulled in from the system automatically and cannot be changed. These environment variables are system wide and include common windows values such as PATH and COMPUTERNAME.
  • Application variables. These are the highest variables that the user can define. Any variable defined in the application namespace can be used anywhere in Continua CI.
  • Project variables. These variables can be accessed by any configuration or build that belong to that project.
  • Configuration variables. These are only accessible from within the configuration and its builds.
  • Build variables. These are the lowest level of variables and will override any of the variables listed above.
Once a build has been triggered it will try to match up a variable name to one 

Defining Variables

The method used to declare variables is different depending on the variable level.

  • Environment variables are pulled in from the system automatically and cannot be changed.
  • Application variables can be created and set on the variables page in the administration section.
  • Project variables can be created and set under the variables tab in the project wizard.
  • Configuration variables are set in the configuration wizard under the variables tab.
  • Build variables can be defined in three separate ways:
    • When a build is triggered. These variable definitions can be defined on the trigger in the configuration wizard.
    • When a build is started manually it will prompt the user for a variable value.
    • Variables can be created as a build action in the stages and actions section.

Variable Types

There are three different types of variables in Continua CI:

  • Text variables can take standard string and text inputs
  • Numeric variables can take any numeric value.
  • Expression variables. These can contain references to other variables and objects in Continua CI.

 

Variables can be used throughout Continua CI and can be created at all levels of Continua CI. Environment variables are pulled in from the system automatically and cannot be changed. They are alsothe certain levels in the hierarchy. Environment variable are there by default and cannot be changed, they're the last variable namespace checked when determining a variable's value. The next level of variables checked at the Application level which is the highest level a user can define a variable. A variable defined in the Application namespace can be used anywhere in Continua. The next level of variables are for projects which are defined on the project wizard page followed by configuration variables which are on the configuration wizard page. The final variable namespace and the one at the top of the hierarchy is the Build Namespace. There are 3 ways to define a build level variable. When a build is triggered (defined when creating the trigger), when manually starting a build that prompts for variables and when setting a variable in a stage using the Set Variable Action. Variables can have a value type of Text, Numeric or Expression. Expression variables can contain references to other variable or objects. Variables can later be referenced using the Objects and Expressions Syntax.

...