From ad2010bfcc3bec63b44c82eae0a6f952931be019 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Thu, 23 Apr 2020 22:14:32 +0200 Subject: [PATCH] Add Git hash to builds --- Jenkinsfile | 4 ++-- src/optionsMenu/AboutTab.tsx | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f7e4a7a..14149ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,7 +51,7 @@ pipeline { } steps { sh 'sed -i -e \'s/ury.org.uk\\/webstudio/ury.org.uk\\/webstudio-dev/\' package.json' - sh 'yarn build' + 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' } @@ -71,7 +71,7 @@ pipeline { } steps { sh 'sed -i -e \'s/ury.org.uk\\/webstudio-dev/ury.org.uk\\/webstudio/\' package.json' - sh 'yarn build' + 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' } diff --git a/src/optionsMenu/AboutTab.tsx b/src/optionsMenu/AboutTab.tsx index d6c5ef1..b2157bb 100644 --- a/src/optionsMenu/AboutTab.tsx +++ b/src/optionsMenu/AboutTab.tsx @@ -18,6 +18,9 @@ export function AboutTab() {
WebStudio v{process.env.REACT_APP_VERSION}
+
+ Git hash: {process.env.REACT_APP_GIT_SHA} +
MyRadio endpoint: {MYRADIO_BASE_URL}/ {MYRADIO_NON_API_BASE}