-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
FreeBSD 10.2
workflow-plugin 1.12
Jenkins 1.641
durable-task plugin 1.7
I have this workflow script:
https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy
which runs this script:
https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build1.sh
In this Jenkins workflow job:
https://jenkins.freebsd.org/job/FreeBSD_HEAD_sparc64/4/console
I get ERROR: script returned exit code -1
I have tried instrumenting my script, but I have found that nothing in my script
is failing. In fact, even though the script has reported as failed,
I have found that if I log into my machine and look at the process table,
the script is still running:
7911 - Is 0:00.00 |-- daemon: /usr/local/openjdk8/bin/java[7912] (daemon) 7912 - I 3:29.71 | `-- /usr/local/openjdk8/bin/java -DJENKINS_HOME=/usr/local/jenkins -jar /usr/local/share/jenkins/jenkins.war --webroot=/usr/local/jenkins/war --httpPort=8180 --prefix=/jenkins start 11634 - I 0:00.00 | `-- sh -c echo $$ > '/usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/.jenkins-8cedefcf/pid'; jsc=durable-2216cfc607681c7235484b12b6ac8c19; JENKINS_SERVER_COOKIE=$jsc '/usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/.jenkins-8cedefcf/script.sh' > '/usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/.jenkins-8cedefcf/jenkins-log.txt' 2>&1; echo $? > '/usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/.jenkins-8cedefcf/jenkins-result.txt' 11635 - I 0:00.00 | `-- /bin/sh -xe /usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/.jenkins-8cedefcf/script.sh 11636 - I 0:00.00 | `-- /bin/sh /usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/freebsd-ci/scripts/build/build1.sh 11642 - I 0:00.01 | `-- make -d xl buildworld __MAKE_CONF=/usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/make.conf 11652 - I 0:00.03 | `-- make -m /usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/share/mk -f Makefile.inc1 TARGET=sparc64 TARGET_ARCH=sparc64 buildworld 79938 - S 0:00.02 | `-- make -f Makefile.inc1 DESTDIR=/usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/obj/sparc64.sparc64/usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/tmp depend 82835 - S 0:00.01 | `-- make depend DIRPRFX=kerberos5/ 82897 - S 0:00.01 | `-- make depend DIRPRFX=kerberos5/tools/ 82898 - S 0:00.02 | `-- make depend DIRPRFX=kerberos5/tools/make-roken/ 82899 - R 0:00.02 | `-- awk -f awk /usr/local/jenkins/jobs/FreeBSD_HEAD_sparc64/workspace/src/kerberos5/tools/make-roken/../../../crypto/heimdal/lib/roken/roken.h.in
The underlying script is still running, but the logs are going nowhere.x
- is blocking
-
JENKINS-22249 Record process ID of spawned process
- Resolved
- links to