| pipeline { |
| agent { |
| kubernetes { |
| label 'migration' |
| } |
| } |
| tools { |
| maven 'apache-maven-3.5.4' |
| jdk 'oracle-jdk8-latest' |
| } |
| triggers { |
| pollSCM('H/5 * * * *') |
| } |
| stages { |
| stage('Build') { |
| parallel { |
| stage('Neo4j') { |
| // NO AGENT - runs in the current Kubernetes machine |
| steps { sh "HAWK_BACKEND_TESTS_ONLY=Neo4JDatabaseFactory ./build.sh" } |
| post { always { junit "**/TEST-*.xml" }} |
| } |
| stage('OrientDB') { |
| agent { kubernetes { label 'migration' } } |
| steps { sh "HAWK_BACKEND_TESTS_ONLY=OrientDatabaseFactory ./build.sh" } |
| post { always { junit "**/TEST-*.xml" }} |
| } |
| stage('LevelDB Greycat') { |
| agent { kubernetes { label 'migration' } } |
| steps { sh "HAWK_BACKEND_TESTS_ONLY=LevelDBGreycatDatabaseFactory ./build.sh" } |
| post { always { junit "**/TEST-*.xml" }} |
| } |
| stage('RocksDB Greycat') { |
| agent { kubernetes { label 'migration' } } |
| steps { sh "HAWK_BACKEND_TESTS_ONLY=RocksDBGreycatDatabaseFactory ./build.sh" } |
| post { always { junit "**/TEST-*.xml" }} |
| } |
| } |
| } |
| stage('Update website') { |
| when { branch 'master' } |
| steps { |
| sh 'echo Do nothing for now' |
| } |
| } |
| stage('Deploy to OSSRH') { |
| when { branch 'master' } |
| steps { |
| sh 'echo Do nothing for now' |
| } |
| } |
| } |
| post { |
| changed { |
| emailext(body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\n More info at: ${env.BUILD_URL}", |
| recipientProviders: [[ |
| $class: "DevelopersRecipientProvider", |
| $class: "RequesterRecipientProvider" |
| ]], |
| subject: "Jenkins Build ${currentBuild.currentResult}: Job ${env.JOB_NAME}") |
| } |
| } |
| } |