Last active
July 20, 2020 03:04
-
-
Save kevincloud/59ce842668d99c8bd6d70cdc9bcd90e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def applyRun(runid) { | |
def response = httpRequest( | |
customHeaders: [ | |
[ name: "Authorization", value: "Bearer " + env.BEARER_TOKEN ], | |
[ name: "Content-Type", value: "application/vnd.api+json" ] | |
], | |
httpMode: 'POST', | |
responseBody: '{ comment: "Apply confirmed" }', | |
url: "https://app.terraform.io/api/v2/runs/${runid}/actions/apply" | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment