skip to Main Content

Jenkinsfile issue while running script with sh – CentOS

I have the following Jenkinsfile def ARTIFACTS_JOB_ID; def ARTIFACTS_URL; node('CentOs') { checkout scm stage('Example') { echo 'Download artifacts' sh 'curljson --header "PRIVATE-TOKEN: tdzis3" "https://gitlab-sample.com/api/v4/projects/63/jobs" > jobs.json' ARTIFACTS_JOB_ID = sh(returnStdout: true, script: 'python GetID.py').trim() ARTIFACTS_URL = "https://gitlab-sample.com/api/v4/projects/63/jobs/${ARTIFACTS_JOB_ID}/artifacts" echo "======> $ARTIFACTS_URL" sh…

VIEW QUESTION

Console Output – Could not initialize class org.jenkinsci.plugins.workflow.cps.CpsThread – Twitter API

When I run a script in jenkins the following error is displayed: Started by user ********* Running in Durability level: MAX_SURVIVABILITY java.lang.NoClassDefFoundError: Could not initialize class org.jenkinsci.plugins.workflow.cps.CpsThread at org.jenkinsci.plugins.workflow.cps.CpsScript.<init>(CpsScript.java:69) at WorkflowScript.<init>(WorkflowScript) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)…

VIEW QUESTION
Back To Top
Search