Skip to content

Commit

Permalink
Change compression method
Browse files Browse the repository at this point in the history
  • Loading branch information
tplavcic committed Oct 17, 2023
1 parent f59685b commit 203462b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ void pushK8SLogs(String TEST_NAME) {
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: 'AMI/OVF', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']]) {
sh """
if [ -d "${LOG_FILE_PATH}/${TEST_NAME}" ]; then
zip -r ${TEST_NAME}.zip ${LOG_FILE_PATH}/${TEST_NAME} || :
env GZIP=-9 tar -zcvf ${TEST_NAME}.tar.gz -C ${LOG_FILE_PATH} ${TEST_NAME}
rm -rf ${LOG_FILE_PATH}/${TEST_NAME}
S3_PATH=s3://percona-jenkins-artifactory/\$JOB_NAME/\$(git rev-parse --short HEAD)/logs
aws s3 ls \$S3_PATH/ || :
aws s3 rm \$S3_PATH/${TEST_NAME}.zip || :
aws s3 cp --quiet ${TEST_NAME}.zip \$S3_PATH/ || :
rm -f ${TEST_NAME}.zip
aws s3 rm \$S3_PATH/${TEST_NAME}.tar.gz || :
aws s3 cp --quiet ${TEST_NAME}.tar.gz \$S3_PATH/ || :
rm -f ${TEST_NAME}.tar.gz
fi
"""
}
Expand Down

0 comments on commit 203462b

Please sign in to comment.