I would like to have the following workflow in Jenkins:
How can this be done?
On the Jenkins main page, click the + tab to start the new view wizard (If you do not see a +, it is likely you do not have permission to create a new view). On the create new view page, give your view a name and select the Dashboard type and click ok.
The Build Pipeline Plugin handles the creation of multiple automatic and/or manually triggered downstream build steps on the same project.
Step 4) Go to your Jenkins dashboard and create a view by clicking on the “+” button. Select the Build Pipeline View option and click OK. Step 5) Under Pipeline view configuration, locate Pipeline Flow. Under Pipeline flow, select the initial job to run.
Use the Execute shell
action to create a shell script that sets an environment variable. For example: echo "BUILD_DESCRIPTION=example" >BUILD_DESCRIPTION.setting
.
Use the Inject environment variables
action to execute the shell script.
Use the Set build description
action to set the build description to the variable that was set by the shell script (eg ${BUILD_DESCRIPTION}
).
in Jenkins Pipeline method use as
script{
currentBuild.displayName = Build_Display (this will be overwrite the Job number)
currentBuild.description = Build_description
}
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