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

2017-10-19 Thread itchymuzzle
What was the error?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9fbd3678-dc60-4f3b-94c6-9d0e99ed596c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-10-19 Thread Neel Desai
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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a1fe0bc1-3884-40f2-b616-375d8e53d37b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.