Skip to content

Commit

Permalink
DROOLS-3816 Add PR pipeline (apache#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
baldimir authored and mswiderski committed Apr 15, 2019
1 parent 13f185e commit b6d1273
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
@Library('jenkins-pipeline-shared-libraries')_

pipeline {
agent {
label 'submarine-static || kie-rhel7'
}
tools {
maven 'kie-maven-3.5.4'
jdk 'kie-jdk1.8'
}
options {
buildDiscarder logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')
}
stages {
stage('Initialize') {
steps {
sh 'printenv'
}
}
stage('Build submarine-bom') {
steps {
timeout(15) {
dir("submarine-bom") {
script {
githubscm.checkoutIfExists('submarine-bom', "$CHANGE_AUTHOR", "$CHANGE_BRANCH", 'kiegroup', "$CHANGE_TARGET")
}
sh 'mvn clean install -DskipTests'
}
}
}
}
stage('Build submarine-runtimes') {
steps {
timeout(30) {
dir("submarine-runtimes") {
script {
githubscm.checkoutIfExists('submarine-runtimes', "$CHANGE_AUTHOR", "$CHANGE_BRANCH", 'kiegroup', "$CHANGE_TARGET")
}
sh 'mvn clean install -DskipTests'
}
}
}
}
stage('Build submarine-cloud') {
steps {
timeout(30) {
sh 'mvn clean install'
}
}
}
// Currently there are no tests in submarine-cloud
// stage('Publish test results') {
// steps {
// junit '**/target/surefire-reports/**/*.xml'
// }
// }
}
post {
unstable {
script {
mailer.sendEmailFailure()
}
}
failure {
script {
mailer.sendEmailFailure()
}
}
always {
cleanWs()
}
}
}

0 comments on commit b6d1273

Please sign in to comment.