diff --git a/jenkins/jobs/dsl/java_reference_application_jobs.groovy b/jenkins/jobs/dsl/java_reference_application_jobs.groovy index 63cd989..97f35ef 100644 --- a/jenkins/jobs/dsl/java_reference_application_jobs.groovy +++ b/jenkins/jobs/dsl/java_reference_application_jobs.groovy @@ -65,10 +65,7 @@ buildAppJob.with { } } steps { - maven { - goals('clean install -DskipTests') - mavenInstallation("ADOP Maven") - } + shell('''./mvnw clean install -DskipTests''') } publishers { archiveArtifacts("**/*") @@ -107,10 +104,7 @@ unitTestJob.with { buildNumber('${B}') } } - maven { - goals('clean test') - mavenInstallation("ADOP Maven") - } + shell('''./mvnw clean test''') } publishers { archiveArtifacts("**/*") @@ -304,10 +298,7 @@ regressionTestJob.with { environmentVariables { propertiesFile('env.properties') } - maven { - goals('clean -B test -DPETCLINIC_URL=${APP_URL} -DZAP_IP=${ZAP_IP} -DZAP_PORT=${ZAP_PORT} -DZAP_ENABLED=${ZAP_ENABLED}') - mavenInstallation("ADOP Maven") - } + shell('''./mvnw clean -B test -DPETCLINIC_URL=${APP_URL} -DZAP_IP=${ZAP_IP} -DZAP_PORT=${ZAP_PORT} -DZAP_ENABLED=${ZAP_ENABLED}''') shell(''' |echo "Stopping OWASP ZAP Proxy and generating report." |docker stop ${CONTAINER_NAME} @@ -410,10 +401,7 @@ performanceTestJob.with { |sed -i "s/###TOKEN_RESPONSE_TIME###/10000/g" ${WORKSPACE}/src/test/scala/default/RecordedSimulation.scala |'''.stripMargin() ) - maven { - goals('gatling:execute') - mavenInstallation('ADOP Maven') - } + shell('''./mvnw gatling:execute''') } publishers { publishHtml {