I've been setting up my jenkins windows service to build all my projects, and have now got to the stage where I want jenkins to create a tag to indicate a successful build.
I'm attempting this as a post build step using the Git Publisher module.
My settings are as follows:
The log file tells me that it's
Pushing tag %BUILD_NUMBER% to repo origin/master
and that is what I see within my git repository. I have tried other environment variables to no avail. The help says:
Environment variables may be used in the tag name - they will be replaced at build time.
which isn't what I'm seeing. What I'm trying to achieve is that I push a tag which is named after the successful build number.
How can I achieve this?
It works if I use $BUILD_NUMBER instead of %BUILD_NUMBER%
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With