Skip to content

Commit

Permalink
Merge pull request #453 from Knowledge-Graph-Hub/fix_build_publish
Browse files Browse the repository at this point in the history
Remove the top-level HTML index refresh in Jenkinsfile
  • Loading branch information
caufieldjh authored Mar 30, 2022
2 parents 267c9be + 0aabf67 commit 561af42
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,6 @@ pipeline {

sh '. venv/bin/activate && s3cmd -c $S3CMD_CFG put -pr --acl-public --cf-invalidate $S3PROJECTDIR s3://kg-hub-public-data/'

// Build the top level index.html
// "External" packages required to run these scripts.
sh '. venv/bin/activate && multi_indexer --bucket kg-hub-public-data --prefix https://kg-hub.berkeleybop.io/ > top-level-index.html'
sh '. venv/bin/activate && s3cmd -c $S3CMD_CFG put --acl-public --mime-type=text/html --cf-invalidate top-level-index.html s3://kg-hub-public-data/index.html'

// Invalidate the CDN now that the new files are up.
sh 'echo "[preview]" > ./awscli_config.txt && echo "cloudfront=true" >> ./awscli_config.txt'
sh '. venv/bin/activate && AWS_CONFIG_FILE=./awscli_config.txt python3.8 ./venv/bin/aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID --paths "/*"'
Expand Down

0 comments on commit 561af42

Please sign in to comment.