From c04e87ba85e26d1dd2f8311dc31750d38bccce30 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Wed, 8 Sep 2021 23:27:54 +0100 Subject: [PATCH] Patch jenkins file homepage in packages.json Fixes webstudio-dev looking in ury.org.uk/static. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 527f1c4..8d239e6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,7 +56,7 @@ pipeline { SENTRY_ENVIRONMENT = 'webstudio-dev' } 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' sshagent(credentials: ['ury']) { sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio-dev'