pipeline bat return -1 without any info, cmd work into cmd.exe

187 views
Skip to first unread message

jer...@bodycad.com

unread,
Aug 26, 2016, 11:29:03 AM8/26/16
to Jenkins Users
Hi,

I have the following simple script (I reduce the number of output to debug it to a single file):

node
{
  bat "\"" + pwd() + "\\external\\Qt55\\msvc2015_64_opengl\\bin\\qmllint.exe\" \"" + pwd() + "\\QmlScripts\\Production\\GeometryCleaner\\GeometryCleaner.qml\"";
}

[Pipeline] node
Running on master in d:\JenkinsWorkspace\BuildSystemTest\TestPipeline
[Pipeline] {
[Pipeline] pwd
[Pipeline] pwd
[Pipeline] bat
[TestPipeline] Running batch script

d:\JenkinsWorkspace\BuildSystemTest\TestPipeline>"d:\JenkinsWorkspace\BuildSystemTest\TestPipeline\external\Qt55\msvc2015_64_opengl\bin\qmllint.exe" "d:\JenkinsWorkspace\BuildSystemTest\TestPipeline\QmlScripts\Production\GeometryCleaner\GeometryCleaner.qml" 
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code -1
Finished: FAILURE

I don't understand why, this command run just fine into a cmd.exe, and I don't have much info to help me as why this doesn't work?!?

the cmd.exe as same user as Jenkins run and return -1:
D:\JenkinsWorkspace\BuildSystemTest\TestPipeline>"d:\JenkinsWorkspace\BuildSystemTest\TestPipeline\external\Qt55\msvc2015_64_opengl\bin\qmllint.exe" "d:\JenkinsWorkspace\BuildSystemTest\TestPipeline\QmlScripts\Production\GeometryCleaner\GeometryCleaner.qml" d:\JenkinsWorkspace\BuildSystemTest\TestPipeline\QmlScripts\Production\GeometryCleaner\GeometryCleaner.qml:66 : Expected token `,' D:\JenkinsWorkspace\BuildSystemTest\TestPipeline>

I tried to make sure the output was not surpressed by the reutrn -1 by setting returnStatus to true:
node { bat([returnStatus: true, script: "\"" + pwd() + "\\external\\Qt55\\msvc2015_64_opengl\\bin\\qmllint.exe\" \"" + pwd() + "\\QmlScripts\\Production\\GeometryCleaner\\GeometryCleaner.qml\""]); }

It does complete the script with success but the command is not run:
[Pipeline] node
Running on master in d:\JenkinsWorkspace\BuildSystemTest\TestPipeline
[Pipeline] {
[Pipeline] pwd
[Pipeline] pwd
[Pipeline] bat
[TestPipeline] Running batch script

d:\JenkinsWorkspace\BuildSystemTest\TestPipeline>"d:\JenkinsWorkspace\BuildSystemTest\TestPipeline\external\Qt55\msvc2015_64_opengl\bin\qmllint.exe" "d:\JenkinsWorkspace\BuildSystemTest\TestPipeline\QmlScripts\Production\GeometryCleaner\GeometryCleaner.qml" 
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS

It's inside the same path, the same .exe the same args, but something is missing but no information is given. Anybody have a way to fix this or at least debug what is wrong with it?

Reply all
Reply to author
Forward
0 new messages