-
Bug
-
Resolution: Unresolved
-
Major
-
Jenkins 2.361.1 LTS, Jenkins 2.346.3 LTS, debian, JDK 8 Windows 2019, JDK11 Scritpler 3.5
Hi. In my case, there seems to be no way to "approve" a script.
I am logged in as a Jenkins admin, I edit the script and save it, which should result in automatic approval of the script, that is what he message is saying me.
The script edits get saved, but the script stays in the "not approved" state.
As a result it can not be run in a job, it is annoying because I use e.g. a short script to deactivate a job after each run. I use that script in a lot of jobs and all of those jobs end with an error state.
[JENKINS-69435] Scripts can not get approved
Summary | Original: Not | New: Scripts can not get approved |
Environment | Original: Jenkins Jenkins 2.346.3 LTS, debian, JDK 8 | New: Jenkins Jenkins 2.346.3 LTS, debian, JDK 8 Windows 2019, JDK11 Scritpler 3.5 |
Labels | New: 2.346.3 LTS |
Environment | Original: Jenkins Jenkins 2.346.3 LTS, debian, JDK 8 Windows 2019, JDK11 Scritpler 3.5 | New: Jenkins 2.361.1 LTS, Jenkins 2.346.3 LTS, debian, JDK 8 Windows 2019, JDK11 Scritpler 3.5 |
Component/s | New: script-security-plugin [ 18520 ] |
Very annoying an unexpected behavior! Fortunately there is an equally annoying workaround.
Go to Script approval console. Somehow unapproved scriptlets code appears in the list and you can approve it there.
The same thing happens when you try to run an approved scriptlet after you edit it in the script UI.
Every small edit requires that you