From d2603255927286ac4c741a400e125420669bb514 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Tue, 9 Jun 2020 11:21:56 +0700 Subject: [PATCH] changed jenkins tasks --- Jenkinsfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c254dbf..cff2ec24 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,17 +28,12 @@ pipeline { stage('build') { steps { sh 'yarn' + sh "mkdir -p ${WORKSPACE}/src/stats" + sh "git log -n 50 --pretty=format:\' { \"commit\": \"%H\", \"subject\": \"%s\", \"timestamp\": \"%at\" }\' | awk \'BEGIN { print(\"[\") } { print(\$0\",\") } END { print(\" {}\\n]\") }\' > ${WORKSPACE}/src/stats/git.json" sh 'yarn build' } } - stage('stats') { - steps { - sh "mkdir -p ${WORKSPACE}/dist/stats" - sh "git log -n 50 --pretty=format:\' { \"commit\": \"%H\", \"subject\": \"%s\", \"timestamp\": \"%at\" }\' | awk \'BEGIN { print(\"[\") } { print(\$0\",\") } END { print(\" {}\\n]\") }\' > ${WORKSPACE}/dist/stats/git.json" - } - } - stage('deploy') { when { anyOf { branch 'master'; branch 'develop' }