Skip to content

Commit

Permalink
Merge pull request #358 from Knowledge-Graph-Hub/jenkins_preserve_exi…
Browse files Browse the repository at this point in the history
…sting_builds_in_index_html

Escape stuff in quotes
  • Loading branch information
justaddcoffee committed Sep 28, 2020
2 parents 1909da5 + 93956eb commit 4a1fda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 4a1fda7

Please sign in to comment.