[JIRA] (JENKINS-56592) Mixed checkout info in console output when two git statements in pipeline

2019-03-18 Thread and...@hammar.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Anders Hammar updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56592  
 
 
  Mixed checkout info in console output when two git statements in pipeline   
 

  
 
 
 
 

 
Change By: 
 Anders Hammar  
 

  
 
 
 
 

 
 When I have two git repos checkout in a pipeline, the console output is inconsistent and the info is mixed up. All the repo info i s specified in the Jenkinsfile.{code:groovy}def REPO1_URL = 'ssh://g...@bitbucket.acme.org:7999/~X/repo1.git'def REPO1_BRANCH = 'master'def REPO2_URL = 'ssh://g...@bitbucket.acme.org:7999/~X/repo2.git'def REPO2_BRANCH = 'branch'node('git && linux') {dir('git-repo1') {deleteDir()git(url: "${REPO1_URL}", branch: "${REPO1_BRANCH}", credentialsId: 'bitbucket-creds')}  dir('git-repo2') {deleteDir()git(url: "${REPO2_URL}", branch: "${REPO2_BRANCH}", credentialsId: 'bitbucket-creds')}}{code}Console output:{quote}Started by user XXXRunning in Durability level: MAX_SURVIVABILITY[Pipeline] Start of Pipeline[Pipeline] nodeRunning on XXX in /var/lib/jenkins/workspace/X/X-two-git-stmt-bug[Pipeline] {[Pipeline] dirRunning in /var/lib/jenkins/workspace/X/X-two-git-stmt-bug/git-repo1[Pipeline] {[Pipeline] deleteDir[Pipeline] gitusing credential bitbucket-credsCloning the remote Git repositoryChecking out Revision 46ad07ce6d689dda4f59e1aff54fc45b8dc1786a (refs/remotes/origin/master)Commit message: "xxx"[Pipeline] }[Pipeline] // dir[Pipeline] dirRunning in /var/lib/jenkins/workspace/X/X-two-git-stmt-bug/git-repo2[Pipeline] {[Pipeline] deleteDir[Pipeline] gitusing credential bitbucket-credsCloning the remote Git repositoryCloning repository ssh://g...@bitbucket.acme.org:7999/~X/repo1.git > git init /var/lib/jenkins/workspace/X/X-two-git-stmt-bug/git-repo1 # timeout=10Fetching upstream changes from ssh://g...@bitbucket.acme.org:7999/~X/repo1.git > git --version # timeout=10using GIT_SSH to set credentials SSH key credentials for Jenkins to access Bitbucket > git fetch --tags --progress ssh://g...@bitbucket.acme.org:7999/~X/repo1.git +refs/heads/*:refs/remotes/origin/* > git config remote.origin.url ssh://g...@bitbucket.acme.org:7999/~X/repo1.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url ssh://g...@bitbucket.acme.org:7999/~X/repo1.git # timeout=10Fetching upstream changes from ssh://g...@bitbucket.acme.org:7999/~X/repo1.gitusing GIT_SSH to set credentials SSH key credentials for Jenkins to access Bitbucket > git fetch --tags --progress ssh://g...@bitbucket.acme.org:7999/~X/repo1.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 > git config core.sparsecheckout # timeout=10 > git checkout -f 46ad07ce6d689dda4f59e1aff54fc45b8dc1786a > git branch -a -v --no-abbrev # timeout=10 > git checkout -b master 46ad07ce6d689dda4f59e1aff54fc45b8dc1786a > git rev-list --no-walk 

[JIRA] (JENKINS-56592) Mixed checkout info in console output when two git statements in pipeline

2019-03-18 Thread and...@hammar.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Anders Hammar updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56592  
 
 
  Mixed checkout info in console output when two git statements in pipeline   
 

  
 
 
 
 

 
Change By: 
 Anders Hammar  
 
 
Environment: 
 RHEL 7, OpenJDK 1.8.0_191, Jenkins LTS 2.150.3Git plugin 3.9.3, Git client plugin 2.7.6, SCM API plugin 2.3.0 , Pipeline: SCM Step 2.7  
 

  
 
 
 
 

 
 
 

 
 
 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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56592) Mixed checkout info in console output when two git statements in pipeline

2019-03-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56592  
 
 
  Mixed checkout info in console output when two git statements in pipeline   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 
 
Component/s: 
 workflow-scm-step-plugin  
 
 
Component/s: 
 git-plugin  
 

  
 
 
 
 

 
 
 

 
 
 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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56592) Mixed checkout info in console output when two git statements in pipeline

2019-03-18 Thread mark.earl.wa...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Waite assigned an issue to Unassigned  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56592  
 
 
  Mixed checkout info in console output when two git statements in pipeline   
 

  
 
 
 
 

 
Change By: 
 Mark Waite  
 
 
Assignee: 
 Mark Waite  
 

  
 
 
 
 

 
 
 

 
 
 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.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-56592) Mixed checkout info in console output when two git statements in pipeline

2019-03-18 Thread and...@hammar.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Anders Hammar created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-56592  
 
 
  Mixed checkout info in console output when two git statements in pipeline   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Mark Waite  
 
 
Components: 
 git-plugin  
 
 
Created: 
 2019-03-18 08:11  
 
 
Environment: 
 RHEL 7, OpenJDK 1.8.0_191, Jenkins LTS 2.150.3  Git plugin 3.9.3, Git client plugin 2.7.6, SCM API plugin 2.3.0  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Anders Hammar  
 

  
 
 
 
 

 
 When I have two git repos checkout in a pipeline, the console output is inconsistent and the info is mixed up. All the repo info i s specified in the Jenkinsfile. 

 

def REPO1_URL = 'ssh://g...@bitbucket.acme.org:7999/~X/repo1.git'
def REPO1_BRANCH = 'master'
def REPO2_URL = 'ssh://g...@bitbucket.acme.org:7999/~X/repo2.git'
def REPO2_BRANCH = 'branch'

node('git && linux') {
dir('git-repo1') {
deleteDir()
git(url: "${REPO1_URL}", branch: "${REPO1_BRANCH}", credentialsId: 'bitbucket-creds')
}dir('git-repo2') {
deleteDir()
git(url: "${REPO2_URL}", branch: "${REPO2_BRANCH}", credentialsId: 'bitbucket-creds')
}
}
 

 Console output: 
 
Started by user XXX Running in Durability level: MAX_SURVIVABILITY [Pipeline] Start of Pipeline 
[Pipeline] node 
Running on XXX in