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

plugin Dashboard View does not recognizes job names from mutli-branch-project-plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using rich text publisher I am able to put custom job output on the dashboard.
      It works for normal jobs.
      But it does not work for subprojects from multi-branch-project-plugin.

      Triing different id's for release branch of project (job) myjob, dashboards shows:
      Job 'myjob/branch/release' not found
      Job 'myjob/release' not found
      Job 'release' not found

        Attachments

          Activity

          Hide
          fantastory Roman Wieczorek added a comment -

          Also Build button does not work in "Jobs Grid Portlet". Probably subprojects are not recognized correctly.

          Show
          fantastory Roman Wieczorek added a comment - Also Build button does not work in "Jobs Grid Portlet". Probably subprojects are not recognized correctly.
          Hide
          veniamin veniamin medvedev added a comment - - edited

          Is there any way of tweaking the following code
          TopLevelItem item = Jenkins.getInstance().getItem(jobName);
          in order to find proper name of Job nested to some Folder?

          or maybe there must be extra check:
          if (!(item instanceof AbstractProject)) {
          item = Jenkins.getInstance().getItemByFullName(jobName);
          }

          Show
          veniamin veniamin medvedev added a comment - - edited Is there any way of tweaking the following code TopLevelItem item = Jenkins.getInstance().getItem(jobName); in order to find proper name of Job nested to some Folder? or maybe there must be extra check: if (!(item instanceof AbstractProject)) { item = Jenkins.getInstance().getItemByFullName(jobName); }
          Hide
          enwi Moritz Wirger added a comment - - edited

          I just fixed this issue in my Pullrequest, thanks to your comment veniamin medvedev

          Show
          enwi Moritz Wirger added a comment - - edited I just fixed this issue in my Pullrequest , thanks to your comment veniamin medvedev
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Moritz Wirger
          Path:
          src/main/java/org/korosoft/jenkins/plugin/rtp/RichTextPortlet.java
          src/main/java/org/korosoft/jenkins/plugin/rtp/pipeline/RichTextPublisherStep.java
          http://jenkins-ci.org/commit/rich-text-publisher-plugin/39511d996b77044a0be984d972061de8230e1aed
          Log:
          fix issue [31899](https://issues.jenkins-ci.org/browse/JENKINS-31899?jql=project%20%3D%20JENKINS%20AND%20component%20%3D%20rich-text-publisher-plugin)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Moritz Wirger Path: src/main/java/org/korosoft/jenkins/plugin/rtp/RichTextPortlet.java src/main/java/org/korosoft/jenkins/plugin/rtp/pipeline/RichTextPublisherStep.java http://jenkins-ci.org/commit/rich-text-publisher-plugin/39511d996b77044a0be984d972061de8230e1aed Log: fix issue [31899] ( https://issues.jenkins-ci.org/browse/JENKINS-31899?jql=project%20%3D%20JENKINS%20AND%20component%20%3D%20rich-text-publisher-plugin )
          Hide
          tgr Tobias Gruetzmacher added a comment -

          Please reopen if this isn't completly fixed yet.

          Show
          tgr Tobias Gruetzmacher added a comment - Please reopen if this isn't completly fixed yet.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            fantastory Roman Wieczorek
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: