How to execute a jar file as a post build jenkins step?

411 views
Skip to first unread message

Neel Desai

unread,
Oct 19, 2017, 9:36:00 AM10/19/17
to Jenkins Users
Hello,

I've a jar file on my local machine. I have shell script ready to execute it. If I run that shell script locally, it works completely fine but whenever I try to run that from jenkins it gives me error. 

Just FYI,

In jenkins for now I am pointing a jar file location to my local machine's location.

#!/bin/bash
cd C://Users//XYZ//comparePFTRuns
mvn exec:java -Dexec.mainClass="com.example.MainClass"


Please let me know how can I do this?

Thanks,
Neel Desai

itchymuzzle

unread,
Oct 19, 2017, 10:28:32 AM10/19/17
to Jenkins Users
What was the error?
Reply all
Reply to author
Forward
0 new messages