Jenkins declarative pipeline throws org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified getAt method
问题 I have defined a shared library in Jenkins: import com.codependent.jenkins.pipelines.Utils def call(List<String> mavenGoals){ def processedMavenGoals = mavenGoals.join ' ' pipeline { agent any ... } If i call this from my project's Jenkinsfile like this it works ok: #!groovy @Library('jenkins-pipeline-shared-library-example') _ buildPipeline(['clean', 'install']) However if I omit the parethesis as Groovy syntax allows: #!groovy @Library('jenkins-pipeline-shared-library-example') _