Hello Jenkins Users,
I am looking over the Job Ownership plugin and it is very close to what I need to complete an assignment
https://wiki.jenkins-ci.org/display/JENKINS/Ownership+Plugin
What I need is a button in the view. Where if the current user clicks the button, they check out the job and are made the owner. After that only the current user and the Jenkins admin is able to change the user. When the user is done with the build/job they are able to select the button which now says “Check-in”. “Check-in” then spawns a job that cleans up the environment. Also who is the current owner is either on the button or below the button.
Has anyone already implemented something of this nature?
Thanks you for reading!
Brett Dupree (Beyondsoft)
Yes, it is possible to add such button. There is the JobOwnerHelper and FolderOwnershipHelper classes, which provide proper API, which you can invoke from the ListViewColumn implementation. OwnershipHelperLocator may help as well though ownership change methods are not a part of the default API.
If the implementation is done in a generic way, I think it may be even added directly to the plugin. Once you have something working, please feel free to create a pull request. Just in case you have any questions there is a not-so-populated chat in Gitter: https://gitter.im/jenkinsci/ownership-plugin