Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42809

Activity/Branch dashboard show pipeline library commit instead of actual built commit

    XMLWordPrintable

    Details

    • Similar Issues:
    • Epic Link:
    • Sprint:
      Blue Ocean - 1.1-beta-1, Blue Ocean - 1.1-beta2

      Description

      Notes
      We don't want to be showing the commits from a shared library in this case. We need to do some testing here and find out why shared library changes are coming through and not the application code. We suspect that we pick the first grouping of change sets and this happens to be the changeset of the shared library in this scenario.

       

      Expected behavior: 

      Show only the latest commit from the repository that the pipeline originates from (ie where the Jenkinsfile is changed) that was triggering the pipeline. 

      Any other commits are to be ignored as part of this. They will show up in the design shown in: https://issues.jenkins-ci.org/browse/JENKINS-39860

       

      Original request
      Heyo!

      I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

       

      Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

       

      Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23
      
      Loading library mylib@master
      > git rev-parse --is-inside-work-tree # timeout=10
      Setting origin to /mnt/devops
      > git config remote.origin.url /mnt/devops # timeout=10
      Fetching origin...
      Fetching upstream changes from origin
      > git --version # timeout=10
      > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
      > git rev-parse master^{commit} # timeout=10
      > git rev-parse origin/master^{commit} # timeout=10
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url /mnt/devops # timeout=10
      Fetching upstream changes from /mnt/devops
      > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
      Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
      > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
      > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10
      
      [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
      [Pipeline] {
      [Pipeline] checkout
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from 2 remote Git repositories
      > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
      Fetching upstream changes from https://github.com/sneils/some-repo.git
      > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
      > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
      > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
      Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
      > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
      Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
      ...
      

       

      I would expect this to be the commit of the actually checked out repository.

       

        Attachments

          Issue Links

            Activity

            sneils Franz B. created issue -
            sneils Franz B. made changes -
            Field Original Value New Value
            Description Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
            !image-2017-03-15-17-12-18-905.png!
            Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             

            ```

            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
             > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*
            > git rev-parse master^\{commit} # timeout=10
            > git rev-parse origin/master^\{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/*:refs/remotes/origin/*
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f *76cca6a*9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] \{
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/*:refs/remotes/origin/*
             > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull/*/head:refs/remotes/origin/pr/*
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23

            ...

            ```

             
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             

            {{Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23}}{{Loading library mylib@master }}
            {{ > git rev-parse --is-inside-work-tree # timeout=10 }}
            {{ Setting origin to /mnt/devops }}
            {{ > git config remote.origin.url /mnt/devops # timeout=10 }}
            {{ Fetching origin... }}
            {{ Fetching upstream changes from origin }}
            {{ > git --version # timeout=10 }}
            {{ > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* }}
            {{ > git rev-parse master^\{commit} # timeout=10 }}
            {{ > git rev-parse origin/master^\{commit} # timeout=10 }}
            {{ > git rev-parse --is-inside-work-tree # timeout=10 }}
            {{ Fetching changes from the remote Git repository }}
            {{ > git config remote.origin.url /mnt/devops # timeout=10 }}
            {{ Fetching upstream changes from /mnt/devops }}
            {{ > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/*:refs/remotes/origin/* }}
            {{ Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10 }}
            {{ > git checkout -f *76cca6a*9021830b3850eab338050c1d839d7b318 }}
            {{ > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10}}{{[Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA }}
            {{ [Pipeline] \{ }}
            {{ [Pipeline] checkout }}
            {{ > git rev-parse --is-inside-work-tree # timeout=10 }}
            {{ Fetching changes from 2 remote Git repositories }}
            {{ > git config remote.origin.url [https://github.com/sneils/some-repo.git] # timeout=10 }}
            {{ Fetching upstream changes from [https://github.com/sneils/some-repo.git] }}
            {{ > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout }}
            {{ > git fetch --tags --progress [https://github.com/sneils/some-repo.git] +refs/heads/*:refs/remotes/origin/* }}
            {{ > git config remote.origin1.url [https://github.com/sneils/some-repo.git] # timeout=10 }}
            {{ Fetching upstream changes from [https://github.com/sneils/some-repo.git] using GIT_ASKPASS to set credentials checkout }}
            {{ > git fetch --tags --progress [https://github.com/sneils/some-repo.git] +refs/pull/*/head:refs/remotes/origin/pr/* }}
            {{ Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63) }}
            {{ > git config core.sparsecheckout # timeout=10 }}
            {{ > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23}}{{...}}

             
            sneils Franz B. made changes -
            Description Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             

            {{Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23}}{{Loading library mylib@master }}
            {{ > git rev-parse --is-inside-work-tree # timeout=10 }}
            {{ Setting origin to /mnt/devops }}
            {{ > git config remote.origin.url /mnt/devops # timeout=10 }}
            {{ Fetching origin... }}
            {{ Fetching upstream changes from origin }}
            {{ > git --version # timeout=10 }}
            {{ > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* }}
            {{ > git rev-parse master^\{commit} # timeout=10 }}
            {{ > git rev-parse origin/master^\{commit} # timeout=10 }}
            {{ > git rev-parse --is-inside-work-tree # timeout=10 }}
            {{ Fetching changes from the remote Git repository }}
            {{ > git config remote.origin.url /mnt/devops # timeout=10 }}
            {{ Fetching upstream changes from /mnt/devops }}
            {{ > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/*:refs/remotes/origin/* }}
            {{ Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10 }}
            {{ > git checkout -f *76cca6a*9021830b3850eab338050c1d839d7b318 }}
            {{ > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10}}{{[Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA }}
            {{ [Pipeline] \{ }}
            {{ [Pipeline] checkout }}
            {{ > git rev-parse --is-inside-work-tree # timeout=10 }}
            {{ Fetching changes from 2 remote Git repositories }}
            {{ > git config remote.origin.url [https://github.com/sneils/some-repo.git] # timeout=10 }}
            {{ Fetching upstream changes from [https://github.com/sneils/some-repo.git] }}
            {{ > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout }}
            {{ > git fetch --tags --progress [https://github.com/sneils/some-repo.git] +refs/heads/*:refs/remotes/origin/* }}
            {{ > git config remote.origin1.url [https://github.com/sneils/some-repo.git] # timeout=10 }}
            {{ Fetching upstream changes from [https://github.com/sneils/some-repo.git] using GIT_ASKPASS to set credentials checkout }}
            {{ > git fetch --tags --progress [https://github.com/sneils/some-repo.git] +refs/pull/*/head:refs/remotes/origin/pr/* }}
            {{ Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63) }}
            {{ > git config core.sparsecheckout # timeout=10 }}
            {{ > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23}}{{...}}

             
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f *76cca6a*9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10[Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             
            sneils Franz B. made changes -
            Description Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f *76cca6a*9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10[Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             
            sneils Franz B. made changes -
            Description Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             

            I would expect this to be the commit of the actually checked out repository.

             
            jamesdumay James Dumay made changes -
            Description Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             

            I would expect this to be the commit of the actually checked out repository.

             
            *Notes*
            We don't want to be showing the commits from a shared library in this case.

            *Original request*
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             

            I would expect this to be the commit of the actually checked out repository.

             
            jamesdumay James Dumay made changes -
            Epic Link JENKINS-35759 [ 171771 ]
            jamesdumay James Dumay made changes -
            Sprint Blue Ocean 1.1 [ 271 ]
            Description *Notes*
            We don't want to be showing the commits from a shared library in this case.

            *Original request*
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             

            I would expect this to be the commit of the actually checked out repository.

             
            *Notes*
            We don't want to be showing the commits from a shared library in this case. We need to do some testing here and find out why shared library changes are coming through and not the application code. We suspect that we pick the first grouping of change sets and this happens to be the changeset of the shared library in this scenario.

            *Original request*
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             

            I would expect this to be the commit of the actually checked out repository.

             
            Priority Minor [ 4 ] Major [ 3 ]
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            jamesdumay James Dumay made changes -
            Rank Ranked higher
            michaelneale Michael Neale made changes -
            Labels technical-debt
            jamesdumay James Dumay made changes -
            Assignee Vivek Pandey [ vivek ]
            jamesdumay James Dumay made changes -
            Sprint Blue Ocean 1.1 [ 271 ] Blue Ocean - techdebt sprint 1 [ 291 ]
            michaelneale Michael Neale made changes -
            Sprint Blue Ocean - 1.1-beta-1 [ 291 ] Blue Ocean - 1.1-beta-1, Blue Ocean - 1.1-beta2 [ 291, 306 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-41497 [ JENKINS-41497 ]
            jamesdumay James Dumay made changes -
            Attachment screenshot-1.png [ 37458 ]
            michaelneale Michael Neale made changes -
            Labels technical-debt pipeline-improvement technical-debt
            michaelneale Michael Neale made changes -
            Description *Notes*
            We don't want to be showing the commits from a shared library in this case. We need to do some testing here and find out why shared library changes are coming through and not the application code. We suspect that we pick the first grouping of change sets and this happens to be the changeset of the shared library in this scenario.

            *Original request*
            Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             

            I would expect this to be the commit of the actually checked out repository.

             
            *Notes*
             We don't want to be showing the commits from a shared library in this case. We need to do some testing here and find out why shared library changes are coming through and not the application code. We suspect that we pick the first grouping of change sets and this happens to be the changeset of the shared library in this scenario.

             

            *Expected behavior:* 

            Show only the latest commit from the repository that the pipeline originates from (ie where the Jenkinsfile is changed) that was triggering the pipeline. 

            Any other commits are to be ignored as part of this. They will show up in the design shown in: https://issues.jenkins-ci.org/browse/JENKINS-39860

             

            *Original request*
             Heyo!

            I'm using pipelines for a while now and have most of the steps used abstracted away into a pipeline library in a git repository. I now installed blue ocean today and was scrolling through my builds which had all suprisingly the same commit shown:

             
             !image-2017-03-15-17-12-18-905.png!
             Turns out this is actually the latest commit of the pipeline library I'm using as seen in the console log:

             
            {code:java}
            Obtained Jenkinsfile from ccf54369437ff7dcd66b888fde50b19bad7ecf23

            Loading library mylib@master
            > git rev-parse --is-inside-work-tree # timeout=10
            Setting origin to /mnt/devops
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching origin...
            Fetching upstream changes from origin
            > git --version # timeout=10
            > git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/
            > git rev-parse master^{commit} # timeout=10
            > git rev-parse origin/master^{commit} # timeout=10
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from the remote Git repository
            > git config remote.origin.url /mnt/devops # timeout=10
            Fetching upstream changes from /mnt/devops
            > git --version # timeout=10 > git fetch --tags --progress /mnt/devops +refs/heads/:refs/remotes/origin/
            Checking out Revision 76cca6a9021830b3850eab338050c1d839d7b318 (master) > git config core.sparsecheckout # timeout=10
            > git checkout -f 76cca6a9021830b3850eab338050c1d839d7b318
            > git rev-list 76cca6a9021830b3850eab338050c1d839d7b318 # timeout=10

            [Pipeline] node Running on master in /var/jenkins_home/workspace/PR-63-WGSBDQPE6N2TEWS2C25CRCFXVLMNQURTXNY3KELAD4YZHGLFQIPA
            [Pipeline] {
            [Pipeline] checkout
            > git rev-parse --is-inside-work-tree # timeout=10
            Fetching changes from 2 remote Git repositories
            > git config remote.origin.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git
            > git --version # timeout=10 using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/heads/:refs/remotes/origin/
            > git config remote.origin1.url https://github.com/sneils/some-repo.git # timeout=10
            Fetching upstream changes from https://github.com/sneils/some-repo.git using GIT_ASKPASS to set credentials checkout
            > git fetch --tags --progress https://github.com/sneils/some-repo.git +refs/pull//head:refs/remotes/origin/pr/
            Checking out Revision ccf54369437ff7dcd66b888fde50b19bad7ecf23 (PR-63)
            > git config core.sparsecheckout # timeout=10
            > git checkout -f ccf54369437ff7dcd66b888fde50b19bad7ecf23
            ...
            {code}
             

            I would expect this to be the commit of the actually checked out repository.

             
            vivek Vivek Pandey made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            vivek Vivek Pandey made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            vivek Vivek Pandey made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            jamesdumay James Dumay made changes -
            Link This issue is duplicated by JENKINS-44265 [ JENKINS-44265 ]
            jbriden Jenn Briden made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              Assignee:
              vivek Vivek Pandey
              Reporter:
              sneils Franz B.
              Votes:
              2 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: