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

Exclude view name from links and/or add fields for links with without view name

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Currently links contain always the full path for the selected job, i.e. when a job is listed as part of view the link contains the view name. Nonetheless there are use cases where the view name is changed (i.e reorganization of view) but the job name stays. In order to not have broken links in your Wikis, etc. it would be good to have the URL pointing always to the job name without the view name in the path even if the job is currently listed in a view.

      Two options I see:

      • Change the URL of the current implementation so that URL is always using only the job name (without the view name). This is changing the current behaviour.
      • Add additional fields in the badge containing the direct URL without the view name.

      Any preferences?

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          FWIW Jenkins core behavior of Item.getUrl() changed (consistent with previous documentation) around 1.540-1.560, so if the plugin is only tested against older versions, this issue may not appear.

          Show
          danielbeck Daniel Beck added a comment - FWIW Jenkins core behavior of Item.getUrl() changed (consistent with previous documentation) around 1.540-1.560, so if the plugin is only tested against older versions, this issue may not appear.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christian Galsterer
          Path:
          src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.groovy
          src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.properties
          src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.groovy
          src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.properties
          http://jenkins-ci.org/commit/embeddable-build-status-plugin/e712a04b5bac196af582dc3df727c937148d9ef7
          Log:
          JENKINS-26585 - Two new variants to show also direct link to job without view in URL

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christian Galsterer Path: src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.groovy src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.properties src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.groovy src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.properties http://jenkins-ci.org/commit/embeddable-build-status-plugin/e712a04b5bac196af582dc3df727c937148d9ef7 Log: JENKINS-26585 - Two new variants to show also direct link to job without view in URL
          Show
          christiangalsterer Christian Galsterer added a comment - PR available at https://github.com/jenkinsci/embeddable-build-status-plugin/pull/13
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christian Galsterer
          Path:
          src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.groovy
          src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.properties
          src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.groovy
          src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.properties
          http://jenkins-ci.org/commit/embeddable-build-status-plugin/916365cb864b720108ed25b1342370caf5c9024e
          Log:
          Merge pull request #13 from jenkinsci/JENKINS-26585

          JENKINS-26585 - Show also direct link to job without view path

          Compare: https://github.com/jenkinsci/embeddable-build-status-plugin/compare/134559478025...916365cb864b

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christian Galsterer Path: src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.groovy src/main/resources/org/jenkinsci/plugins/badge/BadgeAction/index.properties src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.groovy src/main/resources/org/jenkinsci/plugins/badge/RunBadgeAction/index.properties http://jenkins-ci.org/commit/embeddable-build-status-plugin/916365cb864b720108ed25b1342370caf5c9024e Log: Merge pull request #13 from jenkinsci/ JENKINS-26585 JENKINS-26585 - Show also direct link to job without view path Compare: https://github.com/jenkinsci/embeddable-build-status-plugin/compare/134559478025...916365cb864b

            People

            • Assignee:
              christiangalsterer Christian Galsterer
              Reporter:
              christiangalsterer Christian Galsterer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: