From 2c14b0ce4596cfc11a81b9762677596d1861acfe Mon Sep 17 00:00:00 2001 From: valentinab25 <30239069+valentinab25@users.noreply.github.com> Date: Thu, 22 Jun 2023 16:03:58 +0300 Subject: [PATCH] test: remove useless code --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 88820cf3a5..a9720ad256 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -237,7 +237,7 @@ pipeline { sh '''sed -i "s#url:.*#url: 'https://ci.eionet.europa.eu/',#" website/docusaurus.config.js''' sh '''BASEURL="$(echo $BUILD_URL | sed 's#https://ci.eionet.europa.eu##')${GIT_NAME}/"; sed -i "s#baseUrl:.*#baseUrl: '$BASEURL',#" website/docusaurus.config.js''' - def RETURN_STATUS = sh(script: '''cd website; yarn;yarn build;cd ..''', returnStatus: true) + def RETURN_STATUS = sh(script: '''cd website; yarn;yarn build''', returnStatus: true) if ( RETURN_STATUS == 0 ) { publishHTML (target : [allowMissing: false, alwaysLinkToLastBuild: true, @@ -281,7 +281,7 @@ pipeline { sh '''git clone --branch develop https://github.com/eea/eea-storybook.git''' withCredentials([string(credentialsId: 'eea-storybook-chromatica', variable: 'CHROMATICA_TOKEN')]) { - def RETURN_STATUS = sh(script: '''cd eea-storybook; npm install -g mrs-developer chromatic; yarn cache clean; make develop; cd src/addons/$GIT_NAME; git fetch origin pull/${CHANGE_ID}/head:PR-${CHANGE_ID}; git checkout PR-${CHANGE_ID}; cd ../../..; yarn install; yarn build-storybook; npx chromatic --no-interactive --force-rebuild --project-token=$CHROMATICA_TOKEN | tee chromatic.log; cd ..''', returnStatus: true) + def RETURN_STATUS = sh(script: '''cd eea-storybook; npm install -g mrs-developer chromatic; yarn cache clean; make develop; cd src/addons/$GIT_NAME; git fetch origin pull/${CHANGE_ID}/head:PR-${CHANGE_ID}; git checkout PR-${CHANGE_ID}; cd ../../..; yarn install; yarn build-storybook; npx chromatic --no-interactive --force-rebuild --project-token=$CHROMATICA_TOKEN | tee chromatic.log''', returnStatus: true) if ( RETURN_STATUS == 0 ) { def STORY_URL = sh(script: '''grep "View your Storybook" eea-storybook/chromatic.log | sed "s/.*https/https/" ''', returnStdout: true).trim() pullRequest.comment("### :heavy_check_mark: Storybook:\n${STORY_URL}\n\n:rocket: @${GITHUB_COMMENT_AUTHOR}")