Ilan
Ilan

Reputation: 579

Jenkins EC2 Plugin Script Approval

I just updated my Jenkins from 2.79 to 2.86

It seems to add new security fixes but it broke the EC2-Plugin

Indeed, now everytime the plugin is trying to launch a slave agent, I got an error:

"Launching agent" "ERROR: script not yet approved for use"

But the script to be approve via the Script Approval page is dynamic, containing temporary information

Did someone find how to solve the issue?

Thank you

EDIT: I partially found a fix by unchecking the Connect by SSH Process in the EC2 configuration

enter image description here

Upvotes: 0

Views: 578

Answers (4)

Sanjeev Ranjan Singh
Sanjeev Ranjan Singh

Reputation: 11

  • go to manage jenkins
  • got to IN-process script approval
  • approve pending scripts
  • and then launch the agent.

Upvotes: 0

We were having the same issue while launching the slave agent via the SSH client process. As we were not able to quickly solve this, we've decided to downgrade Jenkins to version 2.84.

Upvotes: 0

Jinesh
Jinesh

Reputation: 60

I also downgraded to 2.84 as I could not figure out how to enable sandbox mode. Created new JIRA with Jenkins team.

https://issues.jenkins-ci.org/browse/JENKINS-47979

Upvotes: 0

Kush Vyas
Kush Vyas

Reputation: 6089

Turn on sandbox mode. Whole-script-approval mode really should not be used any more.

While Used In a script, nothing else, only checkout, load the script and function call

Refer this

Upvotes: 0

Related Questions