JNLP : Error: Invalid or corrupt jarfile agent.jar

50 views
Skip to first unread message

Mathieu Delrocq

unread,
Jul 17, 2019, 5:29:07 AM7/17/19
to Jenkins Developers
Hello,

My problem is when try to launch the command "java -jar agent.jar ... " to connect my Jenkins agent via JNLP, I got the error "Error: Invalid or corrupt jarfile agent.jar".
I download agent.jar with a command "curl".

My Jenkins is launched with the war (java -jar jenkins.war) and I tried with the versions 2.150.3 and 2.176.1.

Do you have any idea?

Mark Waite

unread,
Jul 17, 2019, 6:33:34 AM7/17/19
to jenkinsci-dev
Maybe a virus scanner is damaging the file during download?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/783cb7df-9e6e-4c2c-866e-214f71de4b10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Strasser

unread,
Jul 18, 2019, 3:01:07 PM7/18/19
to Jenkins Developers
Also make sure to launch with at least Java 8, preferably the exact version of Java running Jenkins.
Reply all
Reply to author
Forward
0 new messages