-
Improvement
-
Resolution: Unresolved
-
Minor
Hello,
when using Jenkins Artifactory plugin, I have noticed that after doing Release promotion, build is not marked in any way. This way it is not possible to identify which builds were promoted in Artifactory from Jenkins side. Or am I looking at wrong direction?
Also, it is desirable to mark "Keep this build forever", to prevent Jenkins deleting promoted build.
At the moment I workaround this issue by using "Promoted builds plugin" and manually running promotion for the second time to have visual/scriptable identification mark on the build. This also allows to automatically mark build as permanent, however such process is error prone.
As it seemed easy, I have tried to update plugin and it worked on a test Jenkins system without authentication. I have updated UnifiedPromotionBuildAction.java file and added build.keepLog(true) and build.setDescription() to protected void perform(TaskListener listener) function.
On production Jenkins system with AD authentication enabled and Matrix security I have got an authentication error due to my updates. Matrix security provides only Workspace, Read, View permissions for anonymous user, which is intended and not likely to be changed.
Question: Can anyone suggest where and how to enable this plugin to authenticate to Jenkins, when doing a promotion? Or should I add build update in some another place?
Error:
Cannot publish suggested patch yet due to internal legal mumbo jumbo, but it is in the process.