Skip to content

Commit

Permalink
double quotes in multiline sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjornstad committed Aug 15, 2019
1 parent 38592d3 commit b9a42bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db_backup.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ node {
}

stage("run mongodump on tpa-vera-mongodb") {
sh '''
sh """
echo "Running tpa-vera-mongodb backup in ${cluster}"
backup_file="${JENKINS_HOME}/vera_mongodb_backup/vera_mongodb_backup.${cluster}.$(date +%Y%m%d-%H%M%S).tgz"
export KUBECONFIG="./nsync/prod-sbs/config"
Expand All @@ -26,7 +26,7 @@ node {
kubectl cp -n tpa ${vera_mongo}:/dump .
echo "Backupfile is set to ${backup_file}"
tar -czvf ${backup_file} deploy_log/.
'''
"""
}

stage("Removing ${cluster} kubeconfig") {
Expand Down

0 comments on commit b9a42bc

Please sign in to comment.