Is it possible to lock a resource dynamically, say, by a build parameter?
@sandorbuda5909
2 жыл бұрын
Can we somehow unlock rescources in a Jenkins Pipeline ?
@gregorygrillo7988
Жыл бұрын
Yes, assuming you have permissions, navigate to Jenkins -> Dashboard -> Lockable Resources, you'll see a screen with all the locks currently being applied (ie running jobs), just click "Unlock" on the one your want to unlock.
@shawnzy4101
24 күн бұрын
@@gregorygrillo7988 I guess the question was, whether there is a command to be used in the Jenkins pipeline something like: unlock("my-resource")? I don't want to use Jenkins' UI, but unlock a resource via script.
Пікірлер: 4