401.vdec46839d6b_8
github-actions
released this
06 Sep 12:45
·
143 commits
to refs/heads/master
since this release
💥 Major Changes 💥
This release changes the syntax for configuring permissions with Job DSL, and Pipeline plugins (#472)
Warning
This is a breaking change for anyone currently configuring matrix authorization using these plugins.
The permissions
list has been replaced with the entries
list and a more elaborate element syntax decoupled from the serialized XML configuration format. See examples below for the new syntax.
Job DSL
folder('generated') {
properties {
azureAdAuthorizationMatrix {
inheritanceStrategy {
nonInheriting()
}
entries {
group {
name('A group (7fe913e8-6c9f-40f8-913e-7178b7768cc5)')
permissions([
'Job/Build',
'Job/Configure',
'Job/Read'
])}
user {
name('c411116f-cfa6-472c-8ccf-d0cb6053c9aa')
permissions(['Job/Delete'])
}
}
}
}
}
Pipeline
properties([
azureAdAuthorizationMatrix([
user(name: 'c411116f-cfa6-472c-8ccf-d0cb6053c9aa', permissions: ['Job/Delete']),
group(name: 'A group (7fe913e8-6c9f-40f8-913e-7178b7768cc5)', permissions: [
'Job/Build',
'Job/Configure',
'Job/Read'
])
])
])