From 1979215a1525da78277b89867ddc9ed3a282b65d Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Sun, 6 Jun 2021 11:22:01 -0500 Subject: Jenkins: lib: trigger site rebuild after uploading iso to aws --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Jenkinsfile') 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 + """ } } -- cgit v1.2.3