Patch jenkins file homepage in packages.json

Fixes webstudio-dev looking in ury.org.uk/static.
This commit is contained in:
Matthew Stratford 2021-09-08 23:27:54 +01:00 committed by GitHub
parent 69b68ff6d3
commit c04e87ba85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
Jenkinsfile vendored
View file

@ -56,7 +56,7 @@ pipeline {
SENTRY_ENVIRONMENT = 'webstudio-dev' SENTRY_ENVIRONMENT = 'webstudio-dev'
} }
steps { steps {
sh 'sed -i -e \'s/ury.org.uk\\/webstudio/ury.org.uk\\/webstudio-dev/\' package.json' sh 'newpkgjson=$(jq \'.homepage = "https://ury.org.uk/webstudio-dev"\' package.json) && echo "${newpkgjson}" > package.json'
sh 'REACT_APP_GIT_SHA=`git rev-parse --short HEAD` yarn build' sh 'REACT_APP_GIT_SHA=`git rev-parse --short HEAD` yarn build'
sshagent(credentials: ['ury']) { sshagent(credentials: ['ury']) {
sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio-dev' sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio-dev'