From 93956ebd6a293715740b9cbded36fd138b466689 Mon Sep 17 00:00:00 2001 From: Justin Reese Date: Mon, 28 Sep 2020 14:23:14 -0700 Subject: [PATCH] Escape stuff in quotes --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 97ce617d..53b2f84b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -172,7 +172,7 @@ pipeline { sh 'mkdir $S3PROJECTDIR' // add dir for existing builds so they are indexed // do an s3cmd ls for our project subdir, for each existing build make a local dir in $S3PROJECTDIR - sh "for dir in `s3cmd ls s3://kg-hub-public-data/kg-covid-19/ | grep '\/$' | awk '{print $NF}' | grep -w -v -E 'raw|current' | xargs -n1 basename`; do mkdir -p $S3PROJECTDIR/$dir; done" + sh "for dir in `s3cmd ls s3://kg-hub-public-data/kg-covid-19/ | grep '\\/\$' | awk '{print \$NF}' | grep -w -v -E 'raw|current' | xargs -n1 basename`; do mkdir -p $S3PROJECTDIR/$dir; done" // now make two dirs, $BUILDSTARTDATE and current/, both with the same contents sh 'mv $BUILDSTARTDATE $S3PROJECTDIR/' sh 'cp -pr $S3PROJECTDIR/$BUILDSTARTDATE $S3PROJECTDIR/current'