Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
Signed-off-by: Darin Pope <[email protected]>
  • Loading branch information
darinpope committed Oct 29, 2021
1 parent 888b430 commit 752a775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vars/jiraCreateIssue.groovy
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
def call(Map config=[:]) {
def rawBody = libraryResource 'com/planetpope/api/jira/createIssue.json'
def binding = [
key: "${config.body}",
key: "${config.key}",
summary: "${config.summary}",
description: "${config.description}",
issueTypeName: "${config.issueTypeName}"
]
def render = renderTemplate(rawBody,binding)
sh """
sh '''
curl -D- -u $JIRA_CREDENTIALS -X POST --data \"${render}\" -H \"Content-Type: application/json\" $JIRA_URL/rest/api/2/issue
"""
'''
}

0 comments on commit 752a775

Please sign in to comment.