Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42071

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified method java.lang.Boolean call org.jenkinsci.plugins.workflow.cps.CpsClosure2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • pipeline
    • None

      Running attached pipeline job and it failed when running either OSB or ADF paths. Works successfully running SOABPM.

      The following is the failing output.

      Started by user svcsnjenkins
      [Pipeline] node Running on master in /opt/jenkins/jobs/ServiceNow-FMW-Pipeline/workspace
      [Pipeline] { [Pipeline] echo The build value is UAT for OSB
      [Pipeline] echo Deployment failed org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified method java.lang.Boolean call org.jenkinsci.plugins.workflow.cps.CpsClosure2
      [Pipeline] echo Setting deployment status to Deploy Failed for task 599bba734fb832003354fc828110c793
      [Pipeline] echo finally
      [Pipeline] step [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
      [Pipeline] echo Service Now Write Backs initiating
      [Pipeline] echo Updating RM Task record :

      {u_state: 105}

      [Pipeline] httpRequest HttpMode: PUT
      URL: https://xxxxxx.service-now.com/api/now/table/rm_task/599bba734fb832003354fc828110c793
      Content-type: application/json
      Accept: application/json
      Using authentication: ServiceNow
      Sending request to url: https://xxxxxxx.service-now.com/api/now/table/rm_task/599bba734fb832003354fc828110c793
      Response Code: HTTP/1.1 200 OK
      Success code from [100‥399]
      [Pipeline] echo Creating Deployment Log Task record :

      {u_deployment_object: 'NBL_SORT',u_deployment_status: 'Deploy Failed' ,u_deployment_target: 'UAT',u_deployed_by: 'brucec',u_deployment_message: 'org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified method java.lang.Boolean call org.jenkinsci.plugins.workflow.cps.CpsClosure2', u_task_number: 'RTSK0010252',u_task_sys_id: '599bba734fb832003354fc828110c793',u_deployment_tool: 'Jenkins',u_deployment_job_id: '61',u_deployment_job_name: 'ServiceNow-FMW-Pipeline'}

      [Pipeline] httpRequest HttpMode: POST
      URL: https://xxxxxx.service-now.com/api/now/table/u_deployment_log
      Content-type: application/json
      Accept: application/json
      Using authentication: ServiceNow
      Sending request to url: https://xxxxxx.service-now.com/api/now/table/u_deployment_log
      Response Code: HTTP/1.1 201 Created
      Success code from [100‥399]
      [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS

      The following is the successful initiation.
      Started by user svcsnjenkins
      [Pipeline] node Running on master in /opt/jenkins/jobs/ServiceNow-FMW-Pipeline/workspace
      [Pipeline] { [Pipeline] echo The build value is UAT for SOABPM
      [Pipeline] build (Building SOA-UAT-Stage-Clean-Build-And-Deploy) Scheduling project: SOA-UAT-Stage-Clean-Build-And-Deploy
      Starting building: SOA-UAT-Stage-Clean-Build-And-Deploy #160
      [Pipeline] echo Deployment failed hudson.AbortException: SOA-UAT-Stage-Clean-Build-And-Deploy #160 completed with status FAILURE (propagate: false to ignore)
      [Pipeline] echo Writing Deployed Failed status to https://xxxxx.service-now.com/api/now/table/rm_task/c1d910964f3f6a003354fc828110c763
      [Pipeline] echo Creating deployment log record :

      {u_state: '105'}

      [Pipeline] httpRequest HttpMode: PUT
      URL: https://xxxxx.service-now.com/api/now/table/rm_task/c1d910964f3f6a003354fc828110c763
      Content-type: application/json
      Accept: application/json
      Using authentication: ServiceNow
      Sending request to url: https://xxxxxx.service-now.com/api/now/table/rm_task/c1d910964f3f6a003354fc828110c763
      Response Code: HTTP/1.1 200 OK
      Success code from [100‥399]
      [Pipeline] echo Creating deployment log record :

      {u_deployment_object: 'NBL_SORT'}

      [Pipeline] httpRequest HttpMode: POST
      URL: https://xxxxxxx.service-now.com/api/now/table/u_deployment_log
      Content-type: application/json
      Accept: application/json
      Using authentication: ServiceNow
      Sending request to url: https://xxxxxxx.service-now.com/api/now/table/u_deployment_log
      Response Code: HTTP/1.1 201 Created
      Success code from [100‥399]
      [Pipeline] echo finally
      [Pipeline] step [WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
      [Pipeline] echo Last Statement
      [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS

            Unassigned Unassigned
            calistabruce Calista Bruce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: