II
https://t.me/jenkins_ru/48300
Size: a a a
II
II
Jenkins.instance.getAllItems(Job)
// filter jobs by name if needed
.findAll { it.fullName.startsWith('sandbox/tmp-magic') }
.each {
it
.getProperty(ParametersDefinitionProperty)
.getParameterDefinition('MAGIC_PARAMETER')
// `each` ensures nothing happens if `get` returns null
.each {
it.defaultValue = 'shmagic'
}
// the job has changed, but next config reload (f.x. at restart) will overwrite our changes
// so we need to save job config to its config.xml file
it.save()
}
ParametersDefinitionProperty -> JobParametersProperty
, или чего похужеII
DB
AI
AI
ᅠ
AI
II
AI
AI
AI
DB
A
II
AI
AI
AI
RB
AI