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

Job name is lost in ClearCase view tag when running matrix job configuration

    XMLWordPrintable

Details

    Description

      Running a matrix job using ClearCase, taking the default View tag ${USER_NAME}${NODE_NAME}${JOB_NAME}_hudson
      In the parent job, the view is created with the view tag expected.
      In the child job, the view tag includes the axis information, but the job name is lost.
      Example: job "whey" with a single axis "TEXT_AXIS" with values "curds" and "muffet"
      From parent job console log:
      [whey] $ cleartool lsview <user>_<nodename>_whey_hudson
      From configuration "curds" console log:
      [curds] $ cleartool lsview <user>_<nodename>_TEXT_AXIS=curds_hudson

      Note no reference to job "whey" in the configuration view tag.
      Many of our jobs are created via scripts using the api/xml interface and will have the same axis names and values; the absence of the job name makes it very difficult to insure that the view name is unique.
      Reproduced with ClearCase plugin 1.3.5 on both Jenkins 1.407 and Hudson 1.388, running on Windows

      Attachments

        Activity

          Should be fixed in next build of clearcase plugin (#43). http://ci.jenkins-ci.org/view/Plugins/job/plugins_clearcase/

          vlatombe Vincent Latombe added a comment - Should be fixed in next build of clearcase plugin (#43). http://ci.jenkins-ci.org/view/Plugins/job/plugins_clearcase/

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java
          src/main/java/hudson/plugins/clearcase/util/BuildVariableResolver.java
          src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java
          src/test/java/hudson/plugins/clearcase/ClearCaseSCMTest.java
          src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java
          http://jenkins-ci.org/commit/clearcase-plugin/cde42ca3855bba198c0284833eda63dc81ae8b36
          Log:
          [Fixed JENKINS-9433] Job name is lost in ClearCase view tag when
          running matrix job configuration

          Now resolving JOB_NAME to Project#getFullName instead of
          Project#getName

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/hudson/plugins/clearcase/AbstractClearCaseScm.java src/main/java/hudson/plugins/clearcase/util/BuildVariableResolver.java src/test/java/hudson/plugins/clearcase/AbstractClearCaseScmTest.java src/test/java/hudson/plugins/clearcase/ClearCaseSCMTest.java src/test/java/hudson/plugins/clearcase/ClearCaseUcmSCMTest.java http://jenkins-ci.org/commit/clearcase-plugin/cde42ca3855bba198c0284833eda63dc81ae8b36 Log: [Fixed JENKINS-9433] Job name is lost in ClearCase view tag when running matrix job configuration Now resolving JOB_NAME to Project#getFullName instead of Project#getName

          People

            vlatombe Vincent Latombe
            lneff Laura Neff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: