Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into switching the version-tag from using the job number to pipeline number. #7

Open
Direside opened this issue Jan 22, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Direside
Copy link
Contributor

I recently found out we have access to a different number that could be used instead of the job number in our commands.

https://circleci.com/docs/2.0/configuration-reference/#using-pipeline-values

This gives us access to << pipeline.number >> which would be a better identifier for the pipeline version.

Things to consider:

  • This removes the need to have workspace persistence as I've checked and the number is consistent within a pipeline
  • This could remove the need for a version file also, but it might be worth leaving it in as an option?
  • This number is set on first run, re-runs of the same build will keep the same number.
@Direside Direside added the good first issue Good for newcomers label Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant