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 { ...@@ -61,12 +61,6 @@ pipeline {
sh 'npm cache verify' sh 'npm cache verify'
sh 'npm install' sh 'npm install'
if (isReleaseBranch()) {
sh 'npm run ci-prodBuild'
}
else {
sh 'npm run ci-build'
}
if (isMasterBranch()) { if (isMasterBranch()) {
withSonarQubeEnv('sonarqube-ozg-sh'){ withSonarQubeEnv('sonarqube-ozg-sh'){
sh 'npm run ci-sonar' sh 'npm run ci-sonar'
...@@ -74,6 +68,12 @@ pipeline { ...@@ -74,6 +68,12 @@ pipeline {
} else { } else {
sh 'npm run ci-test' 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