Hi Team,
We have migrated our old jenkins job to new server jenkins 2.401.3 but in pre send script we see most of the issue and when we checked there in no approval pending “No pending script approvals.” then too we received this message in jenkins console ,Please help.
**--------------------Error 1 ------------------------------------------------------------------ **org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method java.net.URL openConnection** **
-----------------------------------Error 2---------------------------------------------------
ERROR: Could not send email as a part of the post-build publishers.
org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedClasspathException: classpath entry file:/var/lib/jenkins/ is a class directory, which are not allowed.
** at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.using(ScriptApproval.java:739)**
** at hudson.plugins.emailext.ExtendedEmailPublisher.expandClasspath(ExtendedEmailPublisher.java:796)**
** at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(ExtendedEmailPublisher.java:724)**