Skip to content

Commit

Permalink
add run-clean.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed Mar 6, 2017
1 parent 55ea9c0 commit 3ae8cfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Expand Up @@ -56,7 +56,7 @@ try {
def testReports = '**/target/surefire-reports/TEST-*.xml'
def warFiles = '**/target/*.war'
sh "shopt -s globstar && rm -f $testReports $warFiles"
sh """./mvnw clean package \
sh """./run-clean.sh ./mvnw clean package \
--batch-mode \
--settings .travis-settings.xml \
--update-snapshots \
Expand Down Expand Up @@ -232,7 +232,7 @@ void integrationTests(def appserver) {
xvfb {
withPorts {
// Run the maven build
sh """./mvnw verify \
sh """./run-clean.sh ./mvnw verify \
--batch-mode \
--settings .travis-settings.xml \
-DstaticAnalysis=false \
Expand Down
5 changes: 5 additions & 0 deletions run-clean.sh
@@ -0,0 +1,5 @@
#!/bin/bash -eu
Cmd=$1
shift
$Cmd ${@-}
pkill -P $$

0 comments on commit 3ae8cfa

Please sign in to comment.