Whenever I try to use Json Sluper it throws this error: groovy.json.JsonSlurperClassic. Any Ideas on how I can resolve this? From what I can tell based of the docs it looks roughly correct?
My Jenkinsfile roughly looks like this:
@Library('Internal Library')
import groovy.json.JsonSlurperClassic
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
def complianceFlags = [
enable: true
]
def envDef = [buildImage: "Internal Build Image", compliance: complianceFlags]
env.SFDX_AUDIENCE_URL = "https://test.salesforce.com"
env.HTTP_PROXY="Proxy URL"
executePipeline(envDef) {
stage('Init') {
def slurper = new groovy.json.JsonSlurperClassic()
// checkout scm
// buildInit()
// sh 'printenv'
sh "sfdx version"
sh "git remote -v"
}
}
Here is the image of the error
I was also able to pull this from the pipeline log: