Skip to content

Commit

Permalink
test: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinab25 authored Jun 22, 2023
1 parent 62bd0d9 commit 2c14b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit 2c14b0c

Please sign in to comment.