Skip to content
Permalink
Browse files

Update Jenkinsfile

  • Loading branch information...
borisbaldassari committed Oct 13, 2018
1 parent ee017f0 commit de15417084ec0a991b9c1257594bce0300d8af25
Showing with 9 additions and 10 deletions.
  1. +9 −10 knowledge-base/org.eclipse.scava.knowledgebase/Jenkinsfile
@@ -14,18 +14,17 @@ pipeline {
}
}
stage('Test Knowledge Base') {
lock('knowledge-base-test-lock') {
echo "Cannot run more than one knowledge base test at the same time. Locked."
}
steps {
configFileProvider([configFile(fileId: 'd003cc26-bf21-4793-98e4-3c1f00fdcf5e', variable: 'MY_KB_APP_PROP')]) {
dir(path: 'knowledge-base/org.eclipse.scava.knowledgebase/') {
sh "cp $MY_KB_APP_PROP src/test/resources/application.properties"
sh 'mvn test'
lock('knowledge-base-test-lock') {
configFileProvider([configFile(fileId: 'd003cc26-bf21-4793-98e4-3c1f00fdcf5e', variable: 'MY_KB_APP_PROP')]) {
dir(path: 'knowledge-base/org.eclipse.scava.knowledgebase/') {
sh "cp $MY_KB_APP_PROP src/test/resources/application.properties"
sh 'mvn test'
}
}
}
junit(testResults: 'knowledge-base/org.eclipse.scava.knowledgebase/target/surefire-reports/*.xml', allowEmptyResults: true)
}
junit(testResults: 'knowledge-base/org.eclipse.scava.knowledgebase/target/surefire-reports/*.xml', allowEmptyResults: true)
}
}
post {
success {
archiveArtifacts 'knowledge-base/org.eclipse.scava.knowledgebase/target/scava.knoledgebase.jar'

0 comments on commit de15417

Please sign in to comment.
You can’t perform that action at this time.