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
The 'json' variable contains a string that has an extra trailing single quote (').
When this is used in -d '${json}'" I suspect it will result in an extra (') in the data block. The data block will require the JSON be enclosed in single quotes so make certain those are included.
Not being a Groovy person (pun intended) you may have to play with escaping characters it ensure that the correct string is passed to the cURL command.