Skip to content

Commit

Permalink
fast fail on dependencies for jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Sep 20, 2023
1 parent 6b3e1af commit 801daef
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,26 @@ pipeline {
}
} // stage compile

stage('dependencies') {
when {
expression { params.verify == 'true' }
}
steps {
script {
// TODO - integration tests !
if (isUnix()) {
sh '''
mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
'''
} else {
bat '''
mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q
'''
}
}
}
} // stage verify

stage('verify') {
when {
expression { params.verify == 'true' }
Expand Down

0 comments on commit 801daef

Please sign in to comment.