Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins unmet qualification

I upgraded my installation of jenkins to version 2.249.1.

Previously the approve promotion button was displayed only when the user specified was logged in. After upgrade the approve promotion is displayed all the time with the title unmet qualification - but its still possible to approve!

I want to remove entirely the option to promote. enter image description here

Versions :

Jenkins 2.249.1

git 4.4.4

git client 3.5.1

promoted builds 3.6

like image 657
NimChimpsky Avatar asked Sep 29 '20 06:09

NimChimpsky


2 Answers

The reason is that handling of approval permissions has changed in the plugin with revision 3.0.

Whether the Approve button appears or not now depends (only) on whether the current user has the (global, user-specific) permission to promote.

Pre-3.0 versions of the plugin did compare the current user name to the list of users that you specified in the job configuration.

Bottom line:

  • You cannot separate approval permission from promotion permission.
  • If you need project-specific approval rights for specific users, then you have to establish project-specific promotion permissions (e.g., via the matrix-auth plugin).
like image 177
Alex O Avatar answered Sep 28 '22 23:09

Alex O


Seems there is a bug already reported on this plugin in 2011 (but version is not mentioned there).

JENKINS-11635: Shouldn't allow manual promotion by 'anonymous'

As per that ticket, this seems to be a long lasting bug unfortunately.

like image 36
lkamal Avatar answered Sep 28 '22 23:09

lkamal