Created
June 9, 2017 20:03
-
-
Save frezbo/8616c990ab125b4f5b6c050d540a9378 to your computer and use it in GitHub Desktop.
This file contains 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
stage('Download template') { | |
echo "\u001B[34m\u001B[1mDownloading template\u001B[0m" | |
script { | |
withCredentials([string(credentialsId: "${gitCredentialId}", variable: 'gitToken')]) { | |
sh ''' | |
#!/bin/bash | |
set -e | |
curl -s -X GET -H "Authorization: token '''+gitToken+'''" \ | |
-H "Accept: application/vnd.github.v3.raw" \ | |
'''+gitDownloadURL+''' -o '''+docxTemplate+''' | |
''' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment