[JIRA] (JENKINS-49773) Pipeline plugin sh script returned exit code -2 from time to time
Title: Message Title Jesse Glick assigned an issue to Unassigned Jenkins / JENKINS-49773 Pipeline plugin sh script returned exit code -2 from time to time Change By: Jesse Glick Assignee: Carlos Sanchez Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.188720.1519742833000.13051.1563306225646%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49773) Pipeline plugin sh script returned exit code -2 from time to time
Title: Message Title Carlos Sanchez commented on JENKINS-49773 Re: Pipeline plugin sh script returned exit code -2 from time to time May get fixed with JENKINS-50392 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49773) Pipeline plugin sh script returned exit code -2 from time to time
Title: Message Title yang guilei updated an issue Jenkins / JENKINS-49773 Pipeline plugin sh script returned exit code -2 from time to time Change By: yang guilei Environment: kubernetes1.8.4 jenkins 2.32.3(fabric8/jenkins-docker) jenkins kubernetes plugin 1.3.1 Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-49773) Pipeline plugin sh script returned exit code -2 from time to time
Title: Message Title yang guilei updated an issue Jenkins / JENKINS-49773 Pipeline plugin sh script returned exit code -2 from time to time Change By: yang guilei I am using kubernetes plugin to build my ci environment on a kubernetes cluster. There is a pipeline block like below:stage ('Compile client & go src') \{ dir('./src/main/docker/go/src/portal') \{ sh "pwd; \ cd /home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal/; \ export GOPATH=$\{env.WORKSPACE}/src/main/docker/go; \ gvt restore || true"}}but the sh block fails from time to time. In the console output there are even incomplete log like this:[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] \{ (Compile client & go src)[Pipeline] dirRunning in /home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal[Pipeline] \{[Pipeline] sh[portal] Running shell scriptExecuting shell script inside container [maven] of pod [kubernetes-jcl72]Executing command: sh -c echo $$ > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/pid'; jsc=durable-d2043139f4d662aef846252c818e1165; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/script.sh' > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/jenkins-result.txt' cd "/home/jenkins/workspace/portal_v3.0"sh -c echo $$ > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/pid'; jsc=durable-d2043139f4d662aef846252c818e1165; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/script.sh' > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/jenkins-log.txt' 2>&1; echo $? > ' * /home/jenkins/wo * [?1034hsh-4.2# [Pipeline] } * It the last line, the word "workspace" was truncated to "wo". * I tried 5 times. it fails 2 times and success 3 times. I do not think it is a dupe of JENKINS-46545 because I have many time success Add Comment
[JIRA] (JENKINS-49773) Pipeline plugin sh script returned exit code -2 from time to time
Title: Message Title yang guilei created an issue Jenkins / JENKINS-49773 Pipeline plugin sh script returned exit code -2 from time to time Issue Type: Bug Assignee: Carlos Sanchez Components: kubernetes-plugin Created: 2018-02-27 14:47 Priority: Critical Reporter: yang guilei I am using kubernetes plugin to build my ci environment on a kubernetes cluster. There is a pipeline block like below: stage ('Compile client & go src') { dir('./src/main/docker/go/src/portal') { sh "pwd; \ cd /home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal/; \ export GOPATH=${env.WORKSPACE}/src/main/docker/go; \ gvt restore || true" } } but the sh block fails from time to time. In the console output there are even incomplete log like this: [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Compile client & go src) [Pipeline] dir Running in /home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal [Pipeline] { [Pipeline] sh [portal] Running shell script Executing shell script inside container [maven] of pod [kubernetes-jcl72] Executing command: sh -c echo $$ > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/pid'; jsc=durable-d2043139f4d662aef846252c818e1165; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/script.sh' > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/jenkins-result.txt' cd "/home/jenkins/workspace/portal_v3.0" sh -c echo $$ > '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/pid'; jsc=durable-d2043139f4d662aef846252c818e1165; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/portal_v3.0/src/main/docker/go/src/portal@tmp/durable-ed3533f2/script.sh' >