What is the difference between my shell and Jenkins regarding batch command

514 views
Skip to first unread message

Nicolas Lignée

unread,
Jun 28, 2017, 4:34:44 AM6/28/17
to Jenkins Users
Hello,

I'm currently trying to configure a Jenkins project to build a MCUXpresso project. MCUXpresso is a Eclipse-based IDE.
To do so, I am Executing Windows batch command as follows :

C:\NXP\MCUXpressoIDE_10.0.0_344\ide\mcuxpressoidec.exe -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "my_workspace" -cleanBuild "my_project" --launcher.suppressErrors

By looking at the console output, with a few differences the build is quit similar to the one in MCUXpresso. Yet, I still have a Java exception at the end and the build fails.
What make me think the problem comes from my Jenkins configuration is that when I use exactly the same command in my shell, the build is correct.

I made a lot of research (even on this https://wiki.jenkins.io/display/JENKINS/My+software+builds+on+my+computer+but+not+on+Jenkins) but I still don't find the answer to this question :

What is the difference between the command prompt (where the batch command works) and Jenkins ?

Thank you.

Richard Bywater

unread,
Jun 28, 2017, 4:43:36 AM6/28/17
to Jenkins Users
To be able to provide assistance about possible causes you really need to provide more info - for instance, what the Java exception is that you are getting. Otherwise any help would be merely guessing to possible causes.

Richard.

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3c021678-daa7-4d8c-b120-b2e890351a73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nicolas Lignée

unread,
Jul 24, 2017, 2:58:30 AM7/24/17
to Jenkins Users

Hello,

Sorry for the late answer.
Here is my Java exception :


dasauto

unread,
Jul 25, 2017, 9:03:51 AM7/25/17
to Jenkins Users
There may be 2 things to check:
- check user which Jenkins uses to execute job versus your own one
- if this is executed on node, check if having RDP opened while running job will change anything. If so, this means that RDP session needs to be active while running a build (separate job to setup RDP sessions with xfreeRDP from linux will do)
Reply all
Reply to author
Forward
0 new messages