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

Update CCtray (cc.xml) to support Jenkins2 folders

    Details

    • Similar Issues:

      Description

      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
      

        Attachments

          Issue Links

            Activity

            Hide
            ssbarnea Sorin Sbarnea added a comment -

            Sorry by I don't know Jelly to fix that but I just wanted to remark that cc.xml is not so really obsolete, is quite used as as non vendor specific API to check build status, and its use is documented even on Jenkins wiki at https://wiki.jenkins.io/display/JENKINS/Monitoring+Jenkins

            Show
            ssbarnea Sorin Sbarnea added a comment - Sorry by I don't know Jelly to fix that but I just wanted to remark that cc.xml is not so really obsolete, is quite used as as non vendor specific API to check build status, and its use is documented even on Jenkins wiki at  https://wiki.jenkins.io/display/JENKINS/Monitoring+Jenkins
            Hide
            dnusbaum Devin Nusbaum added a comment -
            Show
            dnusbaum Devin Nusbaum added a comment - I think this should be fixed by https://github.com/jenkinsci/cctray-xml-plugin/pull/1 .
            Hide
            danielbeck Daniel Beck added a comment -

            Not while https://github.com/jenkinsci/jenkins/pull/2691 is open, but I guess this means I'll have to take care if it within the next few days now?

            Show
            danielbeck Daniel Beck added a comment - Not while https://github.com/jenkinsci/jenkins/pull/2691 is open, but I guess this means I'll have to take care if it within the next few days now?
            Hide
            dnusbaum Devin Nusbaum added a comment -

            Yeah we'll have to update the plugin url once cc.xml is removed from core. It would be good to get it all taken care of at the same time.

            Show
            dnusbaum Devin Nusbaum added a comment - Yeah we'll have to update the plugin url once cc.xml is removed from core. It would be good to get it all taken care of at the same time.
            Hide
            danielbeck Daniel Beck added a comment -

            https://github.com/jenkinsci/jenkins/pull/3060 and https://github.com/jenkinsci/jenkins/pull/3081 made it into core, and the first actual release of cctray-xml plugin includes those changes (in a slightly different form)

            Docs: https://github.com/jenkinsci/cctray-xml-plugin#usage

            Show
            danielbeck Daniel Beck added a comment - https://github.com/jenkinsci/jenkins/pull/3060 and https://github.com/jenkinsci/jenkins/pull/3081 made it into core, and the first actual release of cctray-xml plugin includes those changes (in a slightly different form) Docs: https://github.com/jenkinsci/cctray-xml-plugin#usage

              People

              • Assignee:
                Unassigned
                Reporter:
                amrichko Andy Mrichko
              • Votes:
                5 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: