From bedfc943d528a157cb28e59c6955c079aee4f0a9 Mon Sep 17 00:00:00 2001 From: Benjamin Stein Date: Tue, 19 Sep 2017 13:29:58 -0700 Subject: [PATCH] run mvn test from regression suite directory --- jenkinsfiles/full-demo | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/jenkinsfiles/full-demo b/jenkinsfiles/full-demo index 1072f6fc0..1e597e6ff 100644 --- a/jenkinsfiles/full-demo +++ b/jenkinsfiles/full-demo @@ -73,8 +73,7 @@ pipeline { } } steps { - sh "cd regression-suite" - sh "mvn clean -B test -DPETCLINIC_URL=http://petclinic-tomcat:8080/petclinic/" + sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=http://petclinic-tomcat:8080/petclinic/" } } stage('Stop local container') { @@ -120,8 +119,7 @@ pipeline { } } steps { - sh "cd regression-suite" - sh "mvn clean -B test -DPETCLINIC_URL=https://dev-petclinic.liatr.io/petclinic" + sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://dev-petclinic.liatr.io/petclinic" echo "Should be accessible at https://dev-petclinic.liatr.io/petclinic" } } @@ -145,8 +143,7 @@ pipeline { } } steps { - sh "cd regression-suite" - sh "mvn clean -B test -DPETCLINIC_URL=https://qa-petclinic.liatr.io/petclinic" + sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://qa-petclinic.liatr.io/petclinic" echo "Should be accessible at https://qa-petclinic.liatr.io/petclinic" input 'Deploy to Prod?' } @@ -171,8 +168,7 @@ pipeline { } } steps { - sh "cd regression-suite" - sh "mvn clean -B test -DPETCLINIC_URL=https://petclinic.liatr.io/petclinic" + sh "cd regression-suite && mvn clean -B test -DPETCLINIC_URL=https://petclinic.liatr.io/petclinic" } } }