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

CVS - Does not detect changes when the branch name is a variable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cvs-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      When checking out a module from a branch and the branch name is a variable, the plugin does not detect the changes.

      I have a job that has for the branch name a variable defined in Jenkins at System level (Jenkins -> configuration -> Global properties), hence this variable is always defined (even when polling, cf JENKINS-18209).

      During the checkout (and the polling) the branch name is properly expended (fixed by JENKINS-2318), but when computing the changes, everything returned by rlog is discarded. The check performed in CvsLog.java:401 compares the branch the modification was made on (returned by rlog) against the branch name defined in the job. At that moment it compares with the variable, and not the expanded variable.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michael Clarke
          Path:
          src/main/java/hudson/scm/AbstractCvs.java
          src/main/java/hudson/scm/CvsLog.java
          src/main/java/hudson/scm/CvsTagsParamDefinition.java
          src/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java
          http://jenkins-ci.org/commit/cvs-plugin/e1be53655e72d4c5daa885e6829065301328c9f1
          Log:
          [FIXED JENKINS-19653] expand branch name during poll

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: src/main/java/hudson/scm/AbstractCvs.java src/main/java/hudson/scm/CvsLog.java src/main/java/hudson/scm/CvsTagsParamDefinition.java src/main/java/hudson/scm/cvstagging/CvsTagActionWorker.java http://jenkins-ci.org/commit/cvs-plugin/e1be53655e72d4c5daa885e6829065301328c9f1 Log: [FIXED JENKINS-19653] expand branch name during poll

            People

            • Assignee:
              Unassigned
              Reporter:
              mb Denis Gauthier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: