Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
deploying shared artifacts for independent integration tests on review
Browse files Browse the repository at this point in the history
  • Loading branch information
Mbd06b committed Feb 12, 2023
1 parent ad391f0 commit 52b8945
Showing 1 changed file with 31 additions and 9 deletions.
40 changes: 31 additions & 9 deletions devops/ethosengine-jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,33 @@ pipeline{

withMaven() {
sh 'mvn clean compile -fae'

}

}
}
}

stage ('Deploy Shared Artifacts') {
when {
anyOf {
changeset "pom.xml"
changeset "web-automatation-testing/*"
}
}
steps {
echo "Deploy parent pom"
withMaven(mavenSettingsConfig: '59f1c14a-2dc0-4bbd-8a9d-80b901007e0d') {
//skipping tests because we don't want to run the tests that we are packaging
sh 'mvn deploy --non-recursive'
}
dir("web-automation-testing") {
echo "Building Common Tests Jar"
withMaven(mavenSettingsConfig: '59f1c14a-2dc0-4bbd-8a9d-80b901007e0d') {
//skipping tests because we don't want to run the tests that we are packaging
sh 'mvn deploy -DskipTests'
}
}
}

}
stage ('Unit Test Stage') {

parallel {
Expand Down Expand Up @@ -58,12 +80,12 @@ pipeline{

stage ('Integration Test Stage') {
steps {
echo "On Integration Test stage"
dir("web-automation-testing") {
withMaven() {
sh 'mvn integration-test -fae'
}
}
dir("mgl-webapp_review") {
echo "On Integration Test stage"
withMaven(mavenSettingsConfig: '59f1c14a-2dc0-4bbd-8a9d-80b901007e0d') {
sh 'mvn integration-test -fae'
}
}
}
}

Expand Down

0 comments on commit 52b8945

Please sign in to comment.