I am trying to do a poc of jenkins pipeline as code. Is there a way to explicitly define the names for the pipeline jobs that get from Jenkinsfile? I also want to add some descriptions for the jobs
Following script in pipeline will do that(this requires appropriate permissions)
item = Jenkins.instance.getItemByFullName("originalJobName")
item.setDescription("This description was changed by script")
You can rename selected job through jenkins UI by following these steps:
job>configure>Advanced Project Options>Display Name
Other way is to rename the directory on the Jenkins/hudson server and then restart the Jenkins.
Go to the Configure screen and edit the Project name field right on top. Then click on Save and confirm by clicking on Yes.
I am using jenkins declerative pipeline to ...READ MORE
You need to replace the Jenkins.war file. ...READ MORE
Since the container gets destroyed once the ...READ MORE
You can use the same dockerfile for ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Follow these steps:
1. Install ‘EnvInject’ plug-in in the Jenkins ...READ MORE
You can copy Jobs in between your ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.