Skip to content
Snippets Groups Projects
Commit 4d76c846 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5271 OZG-5782 Jenkins: run unit tests first, build second

No need for building if unit tests are failing.
parent 613ddb8c
Branches
Tags
No related merge requests found
......@@ -61,12 +61,6 @@ pipeline {
sh 'npm cache verify'
sh 'npm install'
if (isReleaseBranch()) {
sh 'npm run ci-prodBuild'
}
else {
sh 'npm run ci-build'
}
if (isMasterBranch()) {
withSonarQubeEnv('sonarqube-ozg-sh'){
sh 'npm run ci-sonar'
......@@ -74,6 +68,12 @@ pipeline {
} else {
sh 'npm run ci-test'
}
if (isReleaseBranch()) {
sh 'npm run ci-prodBuild'
}
else {
sh 'npm run ci-build'
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment