diff options
author | Kim Hagen <kim@sentrium.io> | 2021-06-06 11:22:01 -0500 |
---|---|---|
committer | Kim Hagen <kim@sentrium.io> | 2021-06-06 11:22:01 -0500 |
commit | 1979215a1525da78277b89867ddc9ed3a282b65d (patch) | |
tree | b4d5ac9514f2859765d45fe4671db582427b5883 | |
parent | 57ccf2a4c61754967ba0937158ccd6a4a1f16076 (diff) | |
download | vyos-build-1979215a1525da78277b89867ddc9ed3a282b65d.tar.gz vyos-build-1979215a1525da78277b89867ddc9ed3a282b65d.zip |
Jenkins: lib: trigger site rebuild after uploading iso to aws
-rw-r--r-- | Jenkinsfile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index dbb0d9cd..d658d6ac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -226,6 +226,13 @@ pipeline { workingDir: 'build', includePathPattern: 'vyos*.iso') s3Copy(fromBucket: 's3-us.vyos.io', fromPath: 'rolling/' + getGitBranchName() + '/' + files[0].name, toBucket: 's3-us.vyos.io', toPath: getGitBranchName() + '/vyos-rolling-latest.iso') + + // Trigger site rebuild so the download shows. + sh """ + 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 + """ } } |