I would like to understand why the pipeline seems to be failing on piped sh 
commands. 

The pipeline step looks like the following to allow for easy output of the 
command string:


 *sh (script: 'git log --pretty=format:"%h;%s" --no-merges **| grep "'+ SS 
+'"' , returnStdout: true)*


When run in the jenkins pipeline I get the following console output where 
it seems to be 

separating the piped command into separate commands:


[Pipeline] sh <http://10.4.5.52:8080/job/sbe-desenvolvimento/147/console#>*+ + 
grep SS-15735
git log --pretty=format:%h;%s --no-merges*[Pipeline] }[Pipeline] // 
withEnv[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] 
End of PipelineERROR: script returned exit code 1
Finished: FAILURE

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to