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

Pr check jenkins sonar #1124

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions toolbox/jenkins/jenkins_pr_check
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pipeline {
agent {
label 'stage'
}
options {
// test config to not keep ALL builds of PR check
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
timestamps()
}
stages {
stage('Set up node version') {
steps {
echo 'Set up node version'
sh 'nvm use 16'
}
}
stage('Intall node modules') {
steps {
echo 'Installing modules...'
sh 'npm i'
}
}
stage('Run test:cover') {
steps {
echo 'Collect test coverage'
sh 'npm run test:cover'
}
}
/* uncomment me when you will fix lint
stage('Run lint') {
steps {
echo 'Runt lint check'
sh 'npm run lint'
}
}
*/
}
}