I am trying to make a New Relic deployment API call as a Jenkins build step using the Groovy pipeline. I\'m having trouble because of the use of both single and double quotes wi
I've had a similar issue when I created a job that creates a new repository in Github using Github's API.
I've fixed it by replacing the single ticks with quotes and escaped the quotes inside the json object like so:
curl -H "Authorization: token ${ACCESSTOKEN}" --data "{\"name\":\"${REPONAME}\"}" https://api.github.com/orgs/Company/repos