Description
openedon Jul 20, 2023
Describe the bug
When try to connect to Artifactory repository in Jenkins pipeline, the pipeline failed as soon as reach this line:
def server = Artifactory.newServer url:registry+'/artifactory' , credentialsId:'artifact_cred2'
I receive this message error:
<--------------- Jar Publish Started --------------->
[Pipeline] echo
17
[Pipeline] newArtifactoryServer
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.lang.ClassNotFoundException: org.apache.commons.cli.MissingArgumentException
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
(more lines)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Finished: FAILURE
Versions
-
Jenkins Artifactory plugin version:
Artifactory Plugin Version3.18.5 -
Jenkins operating system: 2.401.2
-
Artifactory Version: JFrog Artifactory (Cloud version)