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

Broken link in menu on the job page before the first build

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: sloccount-plugin
    • Labels:
      None
    • Environment:
      All platforms, bug in code logic.
    • Similar Issues:

      Description

      If SLOCCount plugin is newly enabled for a project and before the first successful build is processed, the link in menu on the job page will direct to a non-existing page.

        Attachments

          Activity

          Show
          mixalturek Michal Turek added a comment - Fixed in https://github.com/mixalturek/sloccount-plugin/commit/bcbe5dabc05983dcfc93411b0acc72a60316b0f5 .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountProjectAction.java
          http://jenkins-ci.org/commit/sloccount-plugin/bcbe5dabc05983dcfc93411b0acc72a60316b0f5
          Log:
          JENKINS-21174 Broken link in menu on the job page before the first build

          • If a job is created and no build exists yet, clicking on the link in the menu will redirect the user to an empty page.
          • Fixed to redirect the user to the previously displayed job page in such case.
          • A new page with an info message would be better, but this is much simpler and good enough for such corner case.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/SloccountProjectAction.java http://jenkins-ci.org/commit/sloccount-plugin/bcbe5dabc05983dcfc93411b0acc72a60316b0f5 Log: JENKINS-21174 Broken link in menu on the job page before the first build If a job is created and no build exists yet, clicking on the link in the menu will redirect the user to an empty page. Fixed to redirect the user to the previously displayed job page in such case. A new page with an info message would be better, but this is much simpler and good enough for such corner case.

            People

            • Assignee:
              mixalturek Michal Turek
              Reporter:
              mixalturek Michal Turek
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: