-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSUI-3159 Run CI/CD on jenkins and deploy beta tags to npm #1665
Conversation
base: 'ChromeHeadless', | ||
flags: ['--no-sandbox'] | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to use no-sandbox
to run on the latest chrome.
} | ||
|
||
sh 'set +e' | ||
// sh 'yarn run uploadCoverage' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the issue is the same as the one here: https://stackoverflow.com/questions/41978173/grunt-karma-coverage-fails-on-jenkins-but-works-on-windows-unix
I did not see a way to configure the option in the solution. I will revisit this in the future,
Jenkinsfile
Outdated
} | ||
|
||
stage('Docs') { | ||
sh 'if [[ "x$TAG_NAME" != "x" && $IS_PULL_REQUEST_PUSH_BUILD = false ]]; then bash ./deploy.doc.sh ; fi' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$IS_PULL_REQUEST_PUSH_BUILD
appears to be undefined here. It's a variable I originally added in the travis file.
I think $TAG_NAME
may also not exist, since it's generated by travis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, you are right. I will comment the line out to test the full-loop and deploy a beta package to start testing. In the meantime, I will work on this in a separate jira.
This PR runs the CI/CD steps on jenkins instead of travis. It also deploys tagged versions to npm under the
beta
npm tag.I will work on the deployment pipeline steps next, to be able to promote an npm package to latest, and deploy to s3 under the correct version, and run FTs.
After this, I will look at dev s3 uploads that you added recently @btaillon.