• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core

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

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

          [JENKINS-26091] Marker interface for things with URL

          Matt Sicker added a comment -

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

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

          Jesse Glick added a comment -

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

          Jesse Glick added a comment - A Jenkins-specific interface to retrofit the existing duck-typed String getUrl() signature.

          Vincent Latombe added a comment - https://github.com/jenkinsci/workflow-api-plugin/commit/91f34e0d2498548252b8eb7a58dcf9db4eda8da6 potentially problematic.

          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.

          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 .

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

              Created:
              Updated: