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}")