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

Json with REST API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • scriptler-plugin
    • None
    • Scriptler version 2.9

      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'}, 
      })
      

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

              Created:
              Updated: