Skip to content
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

Merged
merged 17 commits into from
Jan 7, 2021

Conversation

samisayegh
Copy link
Contributor

@samisayegh samisayegh commented Jan 6, 2021

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.

Deploy

base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
Copy link
Contributor Author

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.

Ref: karma-runner/karma-chrome-launcher#158 (comment)

@samisayegh samisayegh changed the title JSUI-3159 Add deployment pipeline and beta npm deployment JSUI-3159 Run CI/CD on jenkins and deploy beta tags to npm Jan 6, 2021
}

sh 'set +e'
// sh 'yarn run uploadCoverage'
Copy link
Contributor Author

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'
Copy link
Contributor

@btaillon-coveo btaillon-coveo Jan 7, 2021

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.

Copy link
Contributor Author

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.

@samisayegh samisayegh merged commit 2fb82d8 into master Jan 7, 2021
@samisayegh samisayegh deleted the JSUI-3159 branch January 7, 2021 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants