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

Git Polling Keeps Detecting Changes When Variables in refspec

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a job where the git refspec and branch are set to +refs/heads/${branch}:refs/remotes/origin/${branch} and the branch is set to ${branch}.

      With that configuration, the SCM polling keeps triggering new builds from the same change.

      If I replace the variables with their values, the SCM polling works correctly.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Mark Waite
            Path:
            src/main/java/hudson/plugins/git/util/GitUtils.java
            src/test/java/hudson/plugins/git/GitSCMTest.java
            http://jenkins-ci.org/commit/git-plugin/1dc2db5cb67c8c1c8dbd004f1c7966d3e86d4d5c
            Log:
            Merge pull request #250 from jakobk/2.2.x

            fix JENKINS-22009 on 2.2.x branch

            Compare: https://github.com/jenkinsci/git-plugin/compare/63b05764bd0e...1dc2db5cb67c

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/util/GitUtils.java src/test/java/hudson/plugins/git/GitSCMTest.java http://jenkins-ci.org/commit/git-plugin/1dc2db5cb67c8c1c8dbd004f1c7966d3e86d4d5c Log: Merge pull request #250 from jakobk/2.2.x fix JENKINS-22009 on 2.2.x branch Compare: https://github.com/jenkinsci/git-plugin/compare/63b05764bd0e...1dc2db5cb67c
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jakob Korherr
            Path:
            src/main/java/hudson/plugins/git/util/GitUtils.java
            src/test/java/hudson/plugins/git/GitSCMTest.java
            http://jenkins-ci.org/commit/git-plugin/897426d8004155c25f272189052b695c3aaadceb
            Log:
            JENKINS-22009 Git Polling Keeps Detecting Changes When Variables in refspec (setup correct environment for polling + test case)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jakob Korherr Path: src/main/java/hudson/plugins/git/util/GitUtils.java src/test/java/hudson/plugins/git/GitSCMTest.java http://jenkins-ci.org/commit/git-plugin/897426d8004155c25f272189052b695c3aaadceb Log: JENKINS-22009 Git Polling Keeps Detecting Changes When Variables in refspec (setup correct environment for polling + test case)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Mark Waite
            Path:
            src/main/java/hudson/plugins/git/util/GitUtils.java
            src/test/java/hudson/plugins/git/GitSCMTest.java
            http://jenkins-ci.org/commit/git-plugin/03995f242e9a3ffe6fdbd2a7b00cdb20d5b3f967
            Log:
            Merge pull request #245 from jakobk/jenkins_22009

            JENKINS-22009 Git Polling Keeps Detecting Changes When Variables in refspec

            Compare: https://github.com/jenkinsci/git-plugin/compare/647f3f09814c...03995f242e9a

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Waite Path: src/main/java/hudson/plugins/git/util/GitUtils.java src/test/java/hudson/plugins/git/GitSCMTest.java http://jenkins-ci.org/commit/git-plugin/03995f242e9a3ffe6fdbd2a7b00cdb20d5b3f967 Log: Merge pull request #245 from jakobk/jenkins_22009 JENKINS-22009 Git Polling Keeps Detecting Changes When Variables in refspec Compare: https://github.com/jenkinsci/git-plugin/compare/647f3f09814c...03995f242e9a
            Hide
            jakobk Jakob Korherr added a comment -

            pull requests were merged in master and 2.2.x

            Show
            jakobk Jakob Korherr added a comment - pull requests were merged in master and 2.2.x
            Hide
            markewaite Mark Waite added a comment -

            Fixed in git client plugin 2.2.5, released 15 Aug 2014.

            Show
            markewaite Mark Waite added a comment - Fixed in git client plugin 2.2.5, released 15 Aug 2014.

              People

              • Assignee:
                jakobk Jakob Korherr
                Reporter:
                cg Christian Goetze
              • Votes:
                2 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: