Am trying to rename 300 jenkin Jobs- lables through a Groovy script
am not able to find any links or examples to refer and do
can you please help ?
a template or the code snippet referring will be much useful
I tried using hudson.model.* - not sure which method to use
I used hudson.instance.items to change the job name but not able to find one to change the lable in a job
changelable(items){
for( item in items) {
println(item.name)
def job = "test"
if (item.name == job ){
item.name = job +""+modified
}
println(item.name)
}
}