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

Marker interface for things with URL

    XMLWordPrintable

Details

    Description

      Like ModelObject, want an interface with a String getUrl() method.

      For Workflow, this would be implemented at least by FlowExecution, FlowExecutionOwner, and FlowNode.

      Attachments

        Issue Links

          Activity

            jvz Matt Sicker added a comment -

            Can this use the stapler class WithWellKnownURL, or are you thinking of a Jenkins-specific interface?

            jvz Matt Sicker added a comment - Can this use the stapler class WithWellKnownURL , or are you thinking of a Jenkins-specific interface?
            jglick Jesse Glick added a comment -

            A Jenkins-specific interface to retrofit the existing duck-typed String getUrl() signature.

            jglick Jesse Glick added a comment - A Jenkins-specific interface to retrofit the existing duck-typed String getUrl() signature.
            vlatombe Vincent Latombe added a comment - https://github.com/jenkinsci/workflow-api-plugin/commit/91f34e0d2498548252b8eb7a58dcf9db4eda8da6 potentially problematic.
            jglick Jesse Glick added a comment -

            https://github.com/jenkinsci/pipeline-plugin/commit/ccc0898556b2fbb7bea1a59c1528fbfd62ae0d9b that is. I think the checked exception could be removed, with WorkflowRun.Owner.getUrl just made to wrap into a RuntimeException.

            jglick Jesse Glick added a comment - https://github.com/jenkinsci/pipeline-plugin/commit/ccc0898556b2fbb7bea1a59c1528fbfd62ae0d9b that is. I think the checked exception could be removed, with WorkflowRun.Owner.getUrl just made to wrap into a RuntimeException .

            People

              Unassigned Unassigned
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: