is it possible to refer the Jenkins ${BUILD_NUMBER} variable in the default value of a Jenkins String parameter? I can't manage to do that.
Use Build Name Setter Plugin to set the custom names to build.
To achieve your requirement, use Pre-Scm-Buildstep which executes as soon as the build starts.
Here you can use Conditional BuildStep Plugin to add conditions based on build trigger cause, if manual cause you can set what ever format build name you want using Build Name Setter Plugin and similarly for other conditions.
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