I'm using two slaves, Windows and Linux. In the first case I have cywing so
I execute commands in both slaves through sh:
...
node(label) {
sh '''#!/bin/bash -xei
whoami
echo $?
case $- in
*i*) echo This shell is interactive ;;
*) echo This shell is not interactive ;;
esac
echo d = $?'''
}
...
I put the $? in order to understand why, sometimes, after executing the
build Jenkins returns an error (script returned exit code -1) even if all
the exit values are 0s. It seems to be a random error. Most of the time the
build is correct, but in some cases it returns this annoyng -1 exit value
without a reason.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/92a3b42b-e78d-4420-9596-82dde92f9fec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.