diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-06 21:14:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-06 21:14:23 +0200 |
commit | 08b03d561f2f5fa942f36be3f17364804d5f1c16 (patch) | |
tree | ea42b1916170fbc483332c4a3a3c503cfb5c789a /Jenkinsfile | |
parent | d4cbb14ec1412c5abbec1f7d5d1231981ce87c1d (diff) | |
download | vyos-build-08b03d561f2f5fa942f36be3f17364804d5f1c16.tar.gz vyos-build-08b03d561f2f5fa942f36be3f17364804d5f1c16.zip |
Jenkins: do not "set +x" when triggering GitHub API
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 79ae48d1..eae878c1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -227,10 +227,10 @@ pipeline { s3Copy(fromBucket: 's3-us.vyos.io', fromPath: 'rolling/' + getGitBranchName() + '/' + files[0].name, toBucket: 's3-us.vyos.io', toPath: getGitBranchName() + '/vyos-rolling-latest.iso') } + // Trigger GitHub action which will re-build the static community website which + // also holds the AWS download links to the generated ISO images withCredentials([string(credentialsId: 'GitHub-API-Token', variable: 'TOKEN')]) { - // Trigger site rebuild so the download shows. sh ''' - set +x curl -X POST --header "Accept: application/vnd.github.v3+json" \ --header 'authorization: Bearer $TOKEN' --data '{"ref": "production"}' \ https://api.github.com/repos/vyos/community.vyos.net/actions/workflows/main.yml/dispatches |