Skip to content

Commit c04e87b

Browse files
authored
Patch jenkins file homepage in packages.json
Fixes webstudio-dev looking in ury.org.uk/static.
1 parent 69b68ff commit c04e87b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

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

0 commit comments

Comments
 (0)