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

API to list available tools for the Editor

    Details

    • Similar Issues:

      Description

      As a user of a visual editor, I would like to be offered a list of tools that are available to be used with the tool installer.

      In Scope

      • New REST endpoint in the editor that allows configured tools to be enumerated over.

        Attachments

          Activity

          Hide
          jamesdumay James Dumay added a comment -

          Tools are something we don't want to encourage in the new world with the Editor for the time being.

          Show
          jamesdumay James Dumay added a comment - Tools are something we don't want to encourage in the new world with the Editor for the time being.
          Hide
          michaelneale Michael Neale added a comment -

          James Dumay after discussion - do we want to bring this back for future? (eg as alt config when agent isn't docker)

          Show
          michaelneale Michael Neale added a comment - James Dumay after discussion - do we want to bring this back for future? (eg as alt config when agent isn't docker)
          Hide
          jamesdumay James Dumay added a comment -

          Sounds good.

          Show
          jamesdumay James Dumay added a comment - Sounds good.
          Hide
          jamesdumay James Dumay added a comment -

          Michael Neale actually this is just a REST endpoint in the editor now, right? There isn't a dependency on Declarative to provide this info except what tools are configured in the model.

          Show
          jamesdumay James Dumay added a comment - Michael Neale actually this is just a REST endpoint in the editor now, right? There isn't a dependency on Declarative to provide this info except what tools are configured in the model.
          Hide
          michaelneale Michael Neale added a comment -

          James Dumay yes this is just to provide an api to enumerate them for now (this doesnt' cover the scope of the editor supporting it)

          Show
          michaelneale Michael Neale added a comment - James Dumay yes this is just to provide an api to enumerate them for now (this doesnt' cover the scope of the editor supporting it)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Keith Zantow
          Path:
          src/main/java/io/blueocean/rest/pipeline/editor/ExportedToolDescriptor.java
          src/main/java/io/blueocean/rest/pipeline/editor/PipelineMetadataService.java
          src/test/java/io/blueocean/rest/pipeline/editor/PipelineMetadataServiceTest.java
          http://jenkins-ci.org/commit/blueocean-pipeline-editor-plugin/8107a4c57b1bd5fdcb7d5d2e554f57f0e032d0dc
          Log:
          [FIX JENKINS-40199] Tool listing API (#14)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Keith Zantow Path: src/main/java/io/blueocean/rest/pipeline/editor/ExportedToolDescriptor.java src/main/java/io/blueocean/rest/pipeline/editor/PipelineMetadataService.java src/test/java/io/blueocean/rest/pipeline/editor/PipelineMetadataServiceTest.java http://jenkins-ci.org/commit/blueocean-pipeline-editor-plugin/8107a4c57b1bd5fdcb7d5d2e554f57f0e032d0dc Log: [FIX JENKINS-40199] Tool listing API (#14) JENKINS-40199 - API to list available tools
          Hide
          gboucherie Guillaume Boucherie added a comment -

          Hi,

          When I try to use the endpoint in a browser I never get the details of available tools. See this example :

          [
            {
              "_class""io.blueocean.rest.pipeline.editor.ExportedToolDescriptor",
              "installations": [
                {}
              ],
              "symbol""maven",
              "toolName""Maven",
              "type""hudson.tasks.Maven$MavenInstallation$DescriptorImpl"
            }
          ]
          

           

          The problem is that defaultVisibility of ExportedToolInstallation is 1, by changing this to 2 details will be displayed.

          [
            {
              "_class""io.blueocean.rest.pipeline.editor.ExportedToolDescriptor",
              "installations": [
                {
                  "name""apache-maven-3.5.2",
                  "type""hudson.tasks.Maven$MavenInstallation"
                }
              ],
              "symbol""maven",
              "toolName""Maven",
              "type""hudson.tasks.Maven$MavenInstallation$DescriptorImpl"
            }
          ]
          

          I need this to provide a endpoint to allow my Jenkins user discover what tools is available in pipeline.

          Could you make the change ? Let me now if I need to create another ticket.

          Show
          gboucherie Guillaume Boucherie added a comment - Hi, When I try to use the endpoint in a browser I never get the details of available tools. See this example : [ { "_class" :  "io.blueocean. rest .pipeline.editor.ExportedToolDescriptor" , "installations" : [ {} ], "symbol" :  "maven" , "toolName" :  "Maven" , "type" :  "hudson.tasks.Maven$MavenInstallation$DescriptorImpl" } ]   The problem is that defaultVisibility of ExportedToolInstallation is 1, by changing this to 2 details will be displayed. [ { "_class" :  "io.blueocean. rest .pipeline.editor.ExportedToolDescriptor" , "installations" : [ { "name" :  "apache-maven-3.5.2" , "type" :  "hudson.tasks.Maven$MavenInstallation" } ], "symbol" :  "maven" , "toolName" :  "Maven" , "type" :  "hudson.tasks.Maven$MavenInstallation$DescriptorImpl" } ] I need this to provide a endpoint to allow my Jenkins user discover what tools is available in pipeline. Could you make the change ? Let me now if I need to create another ticket.

            People

            • Assignee:
              kzantow Keith Zantow
              Reporter:
              michaelneale Michael Neale
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: