summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorqxmips <qxmips@gmail.com>2020-04-15 04:52:12 +0000
committerqxmips <qxmips@gmail.com>2020-04-15 04:52:12 +0000
commitb8ef397f5a9562b7558c70897fbf7c381550a318 (patch)
treed7b5d7ecb40eb4e60b0f442b34837f046619b81b /Jenkinsfile
parente43c3a840b84b316c51989284bd084b4ae1b60b6 (diff)
downloadvyos-build-b8ef397f5a9562b7558c70897fbf7c381550a318.tar.gz
vyos-build-b8ef397f5a9562b7558c70897fbf7c381550a318.zip
changed s3 bucket to s3-us.vyos.io, added rolling/vyos-rolling-latest.iso
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 4dda23a2..466e6f79 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -218,9 +218,11 @@ pipeline {
"""
}
//upload to S3
+ files = findFiles(glob: 'build/vyos*.iso')
withAWS(region: 'us-east-1', credentials: 's3-vyos-downloads-rolling-rw') {
def ARCH = sh(returnStdout: true, script: "dpkg --print-architecture").trim()
- s3Upload( bucket: 'vyos-downloads-rolling', path: 'rolling/' + getGitBranchName() + '/' + ARCH+ '/', workingDir:'build', includePathPattern: 'vyos*.iso' )
+ s3Upload( bucket: 's3-us.vyos.io', path: 'rolling/', workingDir:'build', includePathPattern: 'vyos*.iso' )
+ s3Copy( fromBucket:'s3-us.vyos.io', fromPath:'rolling/' + files[0].name , toBucket:'s3-us.vyos.io', toPath: 'rolling/vyos-rolling-latest.iso')
}
}