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

Update CCtray (cc.xml) to support Jenkins2 folders

XMLWordPrintable

      For situation when jobs have the same names but placed in different folders, cc.xml return the same "name" filed for all job, so this is lead to confusion.

      For example:

      Jobs:

      http://jenkins/job/Folder1/job/Build/
      http://jenkins/job/Folder1/job/Tests/
      http://jenkins/job/Folder2/job/Build/
      http://jenkins/job/Folder3/job/Tests/
      

      CCtray:

      <Project webUrl="http://jenkins/job/Folder1/job/Build/" name="Build" lastBuildLabel="63" lastBuildTime="2016-05-06T09:59:59Z" lastBuildStatus="Success" activity="Sleeping"/>
      <Project webUrl="http://jenkins/job/Folder1/job/Tests/" name="Tests" lastBuildLabel="25" lastBuildTime="2016-05-04T14:58:39Z" lastBuildStatus="Failure" activity="Sleeping"/>
      
      <Project webUrl="http://jenkins/job/Folder2/job/Build/" name="Build" lastBuildLabel="63" lastBuildTime="2016-05-06T09:59:59Z" lastBuildStatus="Success" activity="Sleeping"/>
      <Project webUrl="http://jenkins/job/Folder2/job/Tests/" name="Tests" lastBuildLabel="25" lastBuildTime="2016-05-04T14:58:39Z" lastBuildStatus="Failure" activity="Sleeping"/>
      

      So after import we will receive following jobs:

      Build
      Tests
      Build
      Tests
      

      Expected results:

      CCtray:

      <Project webUrl="http://jenkins/job/Folder1/job/Build/" name="Folder1/Build" lastBuildLabel="63" lastBuildTime="2016-05-06T09:59:59Z" lastBuildStatus="Success" activity="Sleeping"/>
      <Project webUrl="http://jenkins/job/Folder1/job/Tests/" name="Folder1/Tests" lastBuildLabel="25" lastBuildTime="2016-05-04T14:58:39Z" lastBuildStatus="Failure" activity="Sleeping"/>
      
      <Project webUrl="http://jenkins/job/Folder2/job/Build/" name="Folder2/Build" lastBuildLabel="63" lastBuildTime="2016-05-06T09:59:59Z" lastBuildStatus="Success" activity="Sleeping"/>
      <Project webUrl="http://jenkins/job/Folder2/job/Tests/" name="Folder2Tests" lastBuildLabel="25" lastBuildTime="2016-05-04T14:58:39Z" lastBuildStatus="Failure" activity="Sleeping"/>
      

      List of jobs after import:

      Folder1/Build
      Folder1/Tests
      Folder2/Build
      Folder2/Tests
      

            Unassigned Unassigned
            amrichko Andy Mrichko
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: