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

Make Label Linked Jobs plugin compatible with Jenkins Clouds definition

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      With fixed slaves, Label Linked Jobs dashboard shows available labels and the jobs associated with them correctly.

      But when slaves are temporary - created on-demand when a job starts, then destroyed when the job is complete - those labels do not appear in the Label Linked Jobs dashboard. For example, the Docker Plugin allows creating a "cloud" where the "cloud" contains slaves that will be created from docker containers on demand. Each slave does have a label string associated with, just like a normal slave.

      Not sure if the Jenkins generic cloud has a way of getting the labels or not. There are other plugins that create slaves on demand; they may have the same problem as the Docker Plugin.

        Attachments

          Activity

          Hide
          dominiquebrice Dominique Brice added a comment -

          Jason Swager, do you have a sandbox instance of jenkins where you could test a new version of the plugin with realistic clouds settings?
          Since I don't use clouds, my test cases may be missing some settings that occur in "production" environments. Let me know if you have the possibility to test a dev/snapshot version of the plugin, and I'll upload it to jenkins plugins snapshot repository.

          Show
          dominiquebrice Dominique Brice added a comment - Jason Swager , do you have a sandbox instance of jenkins where you could test a new version of the plugin with realistic clouds settings? Since I don't use clouds, my test cases may be missing some settings that occur in "production" environments. Let me know if you have the possibility to test a dev/snapshot version of the plugin, and I'll upload it to jenkins plugins snapshot repository .
          Hide
          dominiquebrice Dominique Brice added a comment - - edited

          I added two things that are visible:

          • on the labels dashboard, if there is at least one cloud defined in the Jenkins instance, each label has an indication to give the number of clouds which can provision it (see screenshot)
          • on the labels linked jobs, cloud(s) able to provision each label listed (atomic or composite) is/are listed (see screenshot)

          Provisioning clouds are also taken into account to determine the list of orphaned jobs on the dashboard.

          A snapshot plugin version with this new feature is available there.

          Show
          dominiquebrice Dominique Brice added a comment - - edited I added two things that are visible: on the labels dashboard, if there is at least one cloud defined in the Jenkins instance, each label has an indication to give the number of clouds which can provision it (see screenshot) on the labels linked jobs, cloud(s) able to provision each label listed (atomic or composite) is/are listed (see screenshot) Provisioning clouds are also taken into account to determine the list of orphaned jobs on the dashboard. A snapshot plugin version with this new feature is available there .
          Hide
          jswager1 Jason Swager added a comment -

          Dominique Brice - sorry for the delay in response. Yes, I do have a sandbox instance where I can try out these changes. I loaded the snapshot version of the plugin and it worked rather well. Instead of seeing jobs that appear orphaned because they linked to labels on cloud providers, they now report the number of clouds and which ones can support them.

          This looks like a successful feature implementation to me! Thanks much!

          Show
          jswager1 Jason Swager added a comment - Dominique Brice - sorry for the delay in response. Yes, I do have a sandbox instance where I can try out these changes. I loaded the snapshot version of the plugin and it worked rather well. Instead of seeing jobs that appear orphaned because they linked to labels on cloud providers, they now report the number of clouds and which ones can support them. This looks like a successful feature implementation to me! Thanks much!
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Dominique
          Path:
          pom.xml
          src/main/java/jenkins/plugins/linkedjobs/actions/LabelDashboardAction.java
          src/main/java/jenkins/plugins/linkedjobs/actions/LabelLinkedJobsAction.java
          src/main/java/jenkins/plugins/linkedjobs/model/JobsGroup.java
          src/main/java/jenkins/plugins/linkedjobs/model/LabelAtomData.java
          src/main/resources/jenkins/plugins/linkedjobs/actions/LabelDashboardAction/index.jelly
          src/main/resources/jenkins/plugins/linkedjobs/actions/LabelLinkedJobsAction/index.jelly
          http://jenkins-ci.org/commit/label-linked-jobs-plugin/2605635e1f7252ee444420d8ebaaa734c6e379ed
          Log:
          Merge pull request #4 from jenkinsci/feature/JENKINS-32445

          JENKINS 32445 basic support for clouds

          Compare: https://github.com/jenkinsci/label-linked-jobs-plugin/compare/1842c5b0ff15...2605635e1f72

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Dominique Path: pom.xml src/main/java/jenkins/plugins/linkedjobs/actions/LabelDashboardAction.java src/main/java/jenkins/plugins/linkedjobs/actions/LabelLinkedJobsAction.java src/main/java/jenkins/plugins/linkedjobs/model/JobsGroup.java src/main/java/jenkins/plugins/linkedjobs/model/LabelAtomData.java src/main/resources/jenkins/plugins/linkedjobs/actions/LabelDashboardAction/index.jelly src/main/resources/jenkins/plugins/linkedjobs/actions/LabelLinkedJobsAction/index.jelly http://jenkins-ci.org/commit/label-linked-jobs-plugin/2605635e1f7252ee444420d8ebaaa734c6e379ed Log: Merge pull request #4 from jenkinsci/feature/ JENKINS-32445 JENKINS 32445 basic support for clouds Compare: https://github.com/jenkinsci/label-linked-jobs-plugin/compare/1842c5b0ff15...2605635e1f72
          Hide
          dominiquebrice Dominique Brice added a comment -

          New plugin version published with this fix: 5.0.1.

          Show
          dominiquebrice Dominique Brice added a comment - New plugin version published with this fix: 5.0.1 .

            People

            Assignee:
            dominiquebrice Dominique Brice
            Reporter:
            jswager1 Jason Swager
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: