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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • sloccount-plugin
    • None
    • All platforms, bug in code logic.

      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.

          [JENKINS-21174] Broken link in menu on the job page before the first build

          Michal Turek added a comment -

          Michal Turek added a comment - Fixed in https://github.com/mixalturek/sloccount-plugin/commit/bcbe5dabc05983dcfc93411b0acc72a60316b0f5 .

          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.

          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.

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

              Created:
              Updated:
              Resolved: