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

Json with REST API

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • scriptler-plugin
    • None
    • Scriptler version 2.9

    Description

      It seemsĀ  that is not possible to return the result of a scriptler script as Json.

      Then content is always returned as plain text.

      const url = `${this.jenkinsUrl}scriptler/run/${scriptId}`
      const result = await axios.get(url, { 
      params: { contentType: 'application/json', }, 
      headers: {Accept: 'application/json'}, 
      })
      

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            mtughan Michael Tughan
            bokzor adrien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: