Re: running shell commands in pipeline fails on pushd and source

2018-12-10 Thread 'Carsten' via Jenkins Users
Hi, It was a "SHELL"-Engine issue indeed. I changed the call to this: > > "... > myresult=sh(script: 'bash deploy.sh', returnStdout: true) > ..." > > and everything works fine, now. Thanks for the hint. br Carsten -- You received this message because you are subscribed to the Google Groups

Re: running shell commands in pipeline fails on pushd and source

2018-12-07 Thread Mark Waite
That seems to hint that the shell invoked on that agent by the Pipeline script is not compatible with the shell syntax you're using. For example, is the shell on that agent inadvertently configured to be 'dash' instead of 'bash'? Is it configured to be 'csh' instead of 'bash'?

running shell commands in pipeline fails on pushd and source

2018-12-07 Thread 'Carsten' via Jenkins Users
Hi list, in a jenkinsfile I trigger a bash script like so: "... myresult=sh(script: 'deploy.sh', returnStdout: true) ..." the script starts but returns errors like these: "command not found: pushd" "command not found: source" And for some reasons it is not able to do such things: "...