Skip to content

Variable interpolation

Objectives

  • To introduce the concept of pipeline variables
  • To increase your familiarity with fly comments to set pipelines, trigger jobs, etc..

Visit the pipeline vars example.

Review the pipeline.

  • Identify what variables need to be set for this pipeline to be complete.

  • Draft a file named vars.yml with the variable names and their values.

  • Identify what flag needs to be passed to the set-pipeline command to inject the variables.

  • Set the pipeline.

  • Unpause it.

  • Trigger the job.

  • Inspect the hello message in the build output to confirm that the variable was interpolated.