jenkinsci / jenkinsci/script-security-plugin

[JENKINS-69435] Scripts can not get approved

Open
#875 2 comments 0 reactions 0 assignees View on GitHub
component:script-security-plugin component:scriptler-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
76
Forks
181
Avg merge
14h 55m
Merged PRs (30d)
3

Description

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.

---
Originally reported by artur2000, imported from: Scripts can not get approved


  • status: Open
  • priority: Major
  • component(s): script-security-plugin, scriptler-plugin
  • label(s): 2.346.3, LTS
  • resolution: Unresolved
  • votes: 2
  • watchers: 4
  • imported: 2025-12-09

Raw content of original issue

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.

  • environment: Jenkins 2.361.1 LTS, Jenkins 2.346.3 LTS, debian, JDK 8 Windows 2019, JDK11 Scritpler 3.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.