Skip to content

java.lang.ClassNotFoundException: org.apache.commons.cli.MissingArgumentException #845

Closed

Description

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions