Help documentation

Pipeline labelling

Cruise maintains an internal counter to identify a pipeline. This number increases by 1 for each build. By default, Cruise will use this counter as the pipeline label. This label is also passed to your build as an environment variable: CRUISE_PIPELINE_COUNTER . The pipeline counter increases even if a build fails.

Customising the pipeline label

You can create a custom label by setting the labeltemplate attribute on your pipeline. This will change the value that Cruise shows on its webpages. It will also change the value of the CRUISE_PIPELINE_LABEL property that is passed to your build. You can refer to ${COUNT} or material names which are defined in the configuration of materials.

<pipeline name="cruise" labeltemplate="1.2.${COUNT}">  
  ...
</pipeline>