[JIRA] [core] (JENKINS-18800) Jenkins selects channel to wrong node for build job

3 views
Skip to first unread message

kent@clubsalino.com (JIRA)

unread,
Jun 9, 2016, 9:10:01 AM6/9/16
to jenkinsc...@googlegroups.com
Kent Granström commented on Bug JENKINS-18800
 
Re: Jenkins selects channel to wrong node for build job

I think I can reproduce this in the latest Jenkins (2.7)
Have a test-setup with a master and 2 slaves (byggslav labelled BS-1 and byggslav-2 labelled BS-2)
Have set up a very simple MultiConfiguration job. The only thing the job does is to pull a git repo to the slave's workspace.
Have also setup the Configuration Matrix to execute on label "BS-1" only.

Despite that, it tends to pull the repo to both slaves but in different locations....

Started by user Me
Building remotely on byggslav-2 (BS-2) in workspace /home/bb2/workspace/MultiConfigJob
Cloning the remote Git repository
Cloning repository ssh://g...@test.mysite.com/testing.git
> git init /home/bb2/workspace/MultiConfigJob # timeout=10
Fetching upstream changes from ssh://g...@test.mysite.com/testing.git
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress ssh://g...@test.mysite.com/testing.git +refs/heads/:refs/remotes/origin/
> git config remote.origin.url ssh://g...@test.mysite.com/testing.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
> git config remote.origin.url ssh://g...@test.mysite.com/testing.git # timeout=10
Fetching upstream changes from ssh://g...@test.mysite.com/testing.git
> git -c core.askpass=true fetch --tags --progress ssh://g...@test.mysite.com/testing.git +refs/heads/:refs/remotes/origin/
> git rev-parse refs/remotes/origin/master^

{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit}

# timeout=10
Checking out Revision c650834025c6866b4fd244458b20a10e64e262cf (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f c650834025c6866b4fd244458b20a10e64e262cf
> git rev-list c650834025c6866b4fd244458b20a10e64e262cf # timeout=10
Triggering MultiConfigJob » BS-1
MultiConfigJob » BS-1 completed with result SUCCESS
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: SUCCESS

REPO found here:
ls -ltr bb1/workspace/MultiConfigJob/label/BS-1/
total 28

rw-r r -. 1 bb1 jenkins 114 Jun 9 16:53 nyfil.txt
rw-r r -. 1 bb1 jenkins 0 Jun 9 16:53 Jenkinsfile
rw-r r -. 1 bb1 jenkins 34 Jun 9 16:53 d.txt
rw-r r -. 1 bb1 jenkins 34 Jun 9 16:53 c.txt
rw-r r -. 1 bb1 jenkins 65 Jun 9 16:53 crb.txt
rw-r r -. 1 bb1 jenkins 170 Jun 9 16:53 cra.txt
rw-r r -. 1 bb1 jenkins 29 Jun 9 16:53 b.txt
rw-r r -. 1 bb1 jenkins 87 Jun 9 16:53 a.txt

and here:
ls -ltr bb2/workspace/MultiConfigJob/
total 28

rw-r r -. 1 bb2 jenkins 114 Jun 9 16:53 nyfil.txt
rw-r r -. 1 bb2 jenkins 0 Jun 9 16:53 Jenkinsfile
rw-r r -. 1 bb2 jenkins 34 Jun 9 16:53 d.txt
rw-r r -. 1 bb2 jenkins 34 Jun 9 16:53 c.txt
rw-r r -. 1 bb2 jenkins 65 Jun 9 16:53 crb.txt
rw-r r -. 1 bb2 jenkins 170 Jun 9 16:53 cra.txt
rw-r r -. 1 bb2 jenkins 29 Jun 9 16:53 b.txt
rw-r r -. 1 bb2 jenkins 87 Jun 9 16:53 a.txt

Regards
– Kent

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

kent@clubsalino.com (JIRA)

unread,
Jun 9, 2016, 9:12:03 AM6/9/16
to jenkinsc...@googlegroups.com
Kent Granström edited a comment on Bug JENKINS-18800
I think I can reproduce this in the latest Jenkins (2.7)  (or a similar behaviour)
Have a test-setup with a master and 2 slaves (byggslav labelled BS-1 and byggslav-2 labelled BS-2)
Have set up a very simple MultiConfiguration job. The only thing the job does is to pull a git repo to the slave's workspace. 
Have also setup the Configuration Matrix to execute on label "BS-1" only.

Despite that, it tends to pull the repo to both slaves but in different locations....

Started by user Me 
Building remotely on *byggslav-2 (BS-2)* in workspace /home/bb2/workspace/MultiConfigJob

Cloning the remote Git repository
Cloning repository ssh://g...@test.mysite.com/testing.git
 > git init /home/bb2/workspace/MultiConfigJob # timeout=10
Fetching upstream changes from ssh://g...@test.mysite.com/testing.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress ssh://g...@test.mysite.com/testing.git +refs/heads/*:refs/remotes/origin/*

 > git config remote.origin.url ssh://g...@test.mysite.com/testing.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10

 > git config remote.origin.url ssh://g...@test.mysite.com/testing.git # timeout=10
Fetching upstream changes from ssh://g...@test.mysite.com/testing.git
 > git -c core.askpass=true fetch --tags --progress ssh://g...@test.mysite.com/testing.git +refs/heads/*:refs/remotes/origin/*

 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision c650834025c6866b4fd244458b20a10e64e262cf (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f c650834025c6866b4fd244458b20a10e64e262cf
 > git rev-list c650834025c6866b4fd244458b20a10e64e262cf # timeout=10
Triggering MultiConfigJob » BS-1
MultiConfigJob » BS-1 completed with result SUCCESS
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: SUCCESS


REPO found here:
ls -ltr *bb1/workspace/MultiConfigJob/label/BS-1/*
total 28
-rw-r--r--. 1 bb1 jenkins 114 Jun  9 16:53 nyfil.txt
-rw-r--r--. 1 bb1 jenkins   0 Jun  9 16:53 Jenkinsfile
-rw-r--r--. 1 bb1 jenkins  34 Jun  9 16:53 d.txt
-rw-r--r--. 1 bb1 jenkins  34 Jun  9 16:53 c.txt
-rw-r--r--. 1 bb1 jenkins  65 Jun  9 16:53 crb.txt
-rw-r--r--. 1 bb1 jenkins 170 Jun  9 16:53 cra.txt
-rw-r--r--. 1 bb1 jenkins  29 Jun  9 16:53 b.txt
-rw-r--r--. 1 bb1 jenkins  87 Jun  9 16:53 a.txt

and here:
 ls -ltr *bb2/workspace/MultiConfigJob/*
total 28
-rw-r--r--. 1 bb2 jenkins 114 Jun  9 16:53 nyfil.txt
-rw-r--r--. 1 bb2 jenkins   0 Jun  9 16:53 Jenkinsfile
-rw-r--r--. 1 bb2 jenkins  34 Jun  9 16:53 d.txt
-rw-r--r--. 1 bb2 jenkins  34 Jun  9 16:53 c.txt
-rw-r--r--. 1 bb2 jenkins  65 Jun  9 16:53 crb.txt
-rw-r--r--. 1 bb2 jenkins 170 Jun  9 16:53 cra.txt
-rw-r--r--. 1 bb2 jenkins  29 Jun  9 16:53 b.txt
-rw-r--r--. 1 bb2 jenkins  87 Jun  9 16:53 a.txt

Regards
-- Kent

kuisathaverat@gmail.com (JIRA)

unread,
Jul 21, 2019, 9:02:02 AM7/21/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo closed an issue as Cannot Reproduce
 
Jenkins / Bug JENKINS-18800
Change By: Ivan Fernandez Calvo
Status: Open Closed
Resolution: Cannot Reproduce
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kuisathaverat@gmail.com (JIRA)

unread,
Jul 21, 2019, 9:02:03 AM7/21/19
to jenkinsc...@googlegroups.com
Assignee: Kohsuke Kawaguchi Ivan Fernandez Calvo
Reply all
Reply to author
Forward
0 new messages