Skip to content

Commit

Permalink
change(jenkins): added yarn policy for storybook building
Browse files Browse the repository at this point in the history
latest version crashes with workspace not created for some dependency from react-countup
  • Loading branch information
ichim-david authored Oct 3, 2022
1 parent ed06e45 commit 3d1b844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ pipeline {
sh '''git clone --branch develop https://github.com/eea/volto-kitkat-frontend.git'''

withCredentials([string(credentialsId: 'volto-kitkat-frontend-chromatica', variable: 'CHROMATICA_TOKEN')]) {
def RETURN_STATUS = sh(script: '''cd volto-kitkat-frontend; npm install -g mrs-developer chromatic; yarn cache clean; yarn 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 volto-kitkat-frontend; npm install -g mrs-developer chromatic; yarn cache clean; yarn develop; cd src/addons/$GIT_NAME; git fetch origin pull/${CHANGE_ID}/head:PR-${CHANGE_ID}; git checkout PR-${CHANGE_ID}; cd ../../..; yarn policies set-version 1.18.0; yarn install; yarn build-storybook; npx chromatic --no-interactive --force-rebuild --project-token=$CHROMATICA_TOKEN | tee chromatic.log; cd ..''', returnStatus: true)
if ( RETURN_STATUS == 0 ) {
def STORY_URL = sh(script: '''grep "View your Storybook" volto-kitkat-frontend/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 3d1b844

Please sign in to comment.