kubernetes-plugin: logging output

25 views
Skip to first unread message

Sascha Vujevic

unread,
Mar 24, 2017, 7:45:00 AM3/24/17
to Jenkins Users
Hello developers,

we use the kubernetes-plugin to produce slaves in Jenkins.

In the logfile we can see following output:

12:38:52 [slave-test-npm] Running shell script
12:38:52 Executing shell script inside container [npm] of pod [kubernetes-cfebda342f4349e9a12bb07ff3b1db8c-9801f82825b9f]
12:38:52 Executing command: sh -c echo $$ > '/home/jenkins/workspace/slave-test-npm@tmp/durable-fc339069/pid'; jsc=durable-0cd0becdd66e2d5e1c287736e0acaf0b; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/slave-test-npm@tmp/durable-fc339069/script.sh' > '/home/jenkins/workspace/slave-test-npm@tmp/durable-fc339069/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/slave-test-npm@tmp/durable-fc339069/jenkins-result.txt'
12:38:52 sh: scl_source: No such file or directory
12:38:52 [?1034hsh-4.2$ cd "/home/jenkins/workspace/slave-test-npm"
12:38:52 sh-4.2$ sh -c echo $$ > '/home/jenkins/workspace/slave-test-npm@tmp/durable-fc33
9069/pid'
; jsc=durable-0cd0becdd66e2d5e1c287736e0acaf0b; JENKINS_SERVER_COOKIE=$
jsc
'/home/jenkins/workspace/slave-test-npm@tmp/durable-fc339069/script.sh' > '/
home/jenkins/workspace/slave-test-npm@tmp/durable-fc339069/jenkins-log.txt'
2>&1
; echo $? > '/home/jenkins/workspace/slave-test-npm@tmp/durable-fc339069/jenkins
-result.txt'

Could this output be avoided ?

Thanks for your support.

Best regards
      Sascha

Sascha Vujevic

unread,
Mar 29, 2017, 9:31:59 AM3/29/17
to Jenkins Users
Also the problem with this execution is that

cd "/home/jenkins/workspace/slave-test-npm"

makes a

dir('') {
    // some block
}

not working.
Reply all
Reply to author
Forward
0 new messages