-
Bug
-
Resolution: Unresolved
-
Minor
-
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'}, })
[JENKINS-65326] Json with REST API
Description |
Original:
It seems that is not possible to return the result of a scriptler script as Json.
Then content is always returned as plain text. {code:java} const result = await axios.get(url, { params: { contentType: 'application/json', }, headers: {Accept: 'application/json'}, }) {code} |
New:
It seems that is not possible to return the result of a scriptler script as Json.
Then content is always returned as plain text. {code:java} const url = `${this.jenkinsUrl}scriptler/run/${scriptId}` const result = await axios.get(url, { params: { contentType: 'application/json', }, headers: {Accept: 'application/json'}, }) {code} |
Assignee | Original: Dominik Bartholdi [ domi ] | New: Michael Tughan [ mtughan ] |