-
Bug
-
Resolution: Fixed
-
Major
-
None
-
lockable-resources plugin 2.0
Locking a job with a resource name won't work, if using the autocompleted resource name. Two jobs requiring the same lock can be run in parallel.
Steps to reproduce:
- In the Jenkins configuration, create a lockable resource called 'abcd'
- Create a new freestyle job, in the configuration choose 'This build requires lockable resources' and type 'ab' to 'Resources'. The autocomplete should now offer you 'abcd', click on that.
- Click save.
- Build your new project.
- Open the console. It should say
[lockable-resources] acquired lock on [](it should have said acquired lock on [abcd].
The problem seems to be, that the plugin writes to the jobs config.xml an extra space character, e.g.
<resourceNames>abcd </resourceNames>
instead of <resourceNames>abcd</resourceNames>
- relates to
-
JENKINS-43574 Lockable resources plugin does not take effect
- Resolved