Skip to content

Instantly share code, notes, and snippets.

@FyberEngineers
Created March 5, 2020 09:22
Show Gist options
  • Save FyberEngineers/49959fb4c2705e2f49eab40ba1af00fc to your computer and use it in GitHub Desktop.
Save FyberEngineers/49959fb4c2705e2f49eab40ba1af00fc to your computer and use it in GitHub Desktop.
step('Upload tar to s3 cli') {
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', accessKeyVariable: 'AWS_ACCESS_KEY_ID', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) {
sh "pip install --user awscli"
sh "sudo apt-get -y install awscli"
sh "aws s3 cp ./volcano/target/${tarName} s3://fullgc/tars/"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment