Include version in artifact

  1. determine the next version number in the first job of the pipeline.
  2. store the number in a file and declare it as an artifact
  3. retrieve the version number in subsequent phases of the pipeline

Note