Patch jenkins file homepage in packages.json
Fixes webstudio-dev looking in ury.org.uk/static.
This commit is contained in:
parent
69b68ff6d3
commit
c04e87ba85
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue