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

sequential build number for each workflow execution #9189

Open
reddymh opened this issue Jul 20, 2022 · 3 comments
Open

sequential build number for each workflow execution #9189

reddymh opened this issue Jul 20, 2022 · 3 comments
Labels
type/feature Feature request

Comments

@reddymh
Copy link
Contributor

reddymh commented Jul 20, 2022

Summary

Do we plan to introduce sequential build number for each workflow execution or environment variable like BUILD_NUMBER or WORKFLOW_NUMBER for each workflow build.

Use Cases

It will be good if we have build number and will be helpful for tagging the build or using the build number for the CI/CD.


Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

@reddymh reddymh added the type/feature Feature request label Jul 20, 2022
@sarabala1979
Copy link
Member

@reddymh Can you provide us more details for this requirement?

@reddymh
Copy link
Contributor Author

reddymh commented Jul 20, 2022

@sarabala1979 for CI/CD , it will be good providing sequential build number for each workflow/pipeline executions.

example:
if I am building java application build the it will be good to have build number or workflow number for each build and tag the build or publish the artifact with the build number or some unique sequential number as well.
If you see any CI tool like jenkins , each job will have sequential build number starting with 1 ..so that we can use for tagging the artifacts

@Hunter-Thompson
Copy link
Contributor

Hunter-Thompson commented Jul 21, 2022

Workflows are different from Jenkins pipelines. It is quite hard to keep track of the sequence because each workflow is created independently, not invoked. No way to accurately determine the sequence.

Jenkins invokes a pipeline which is already created, has a history and thus, there is a sequence to it.

Also tagging an artifact with the build sequence makes no sense IMHO. If you are building an application, don't you think using the git commit id, or the git tag name would be more appropriate than the build sequence number?

@agilgur5 agilgur5 changed the title Any plan to introduce sequential build number for each workflow execution sequential build number for each workflow execution Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants