diff --git a/Jenkinsfile b/Jenkinsfile index b75d5340a1c..c090fc07d50 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { agent { node { label 'linux' } } steps { timeout(time: 120, unit: 'MINUTES') { - mavenBuild("jdk8", "-Pmongodb install", "maven3", true) + mavenBuild("jdk8", "-Pmongodb clean install", "maven3", true) // Collect up the jacoco execution results (only on main build) jacoco inclusionPattern: '**/org/eclipse/jetty/**/*.class', exclusionPattern: '' + @@ -45,7 +45,7 @@ pipeline { agent { node { label 'linux' } } steps { timeout(time: 120, unit: 'MINUTES') { - mavenBuild("jdk11", "-Pmongodb install", "maven3", true) + mavenBuild("jdk11", "-Pmongodb clean install", "maven3", true) warnings consoleParsers: [[parserName: 'Maven'], [parserName: 'Java']] junit testResults: '**/target/surefire-reports/*.xml,**/target/invoker-reports/TEST*.xml' } @@ -56,7 +56,7 @@ pipeline { agent { node { label 'linux' } } steps { timeout(time: 120, unit: 'MINUTES') { - mavenBuild("jdk13", "-Pmongodb install", "maven3", true) + mavenBuild("jdk13", "-Pmongodb clean install", "maven3", true) warnings consoleParsers: [[parserName: 'Maven'], [parserName: 'Java']] junit testResults: '**/target/surefire-reports/*.xml,**/target/invoker-reports/TEST*.xml' } @@ -77,7 +77,7 @@ pipeline { agent { node { label 'linux' } } steps { timeout(time: 30, unit: 'MINUTES') { - mavenBuild("jdk11", "install -f build-resources", "maven3", true) + mavenBuild("jdk11", "clean install -f build-resources", "maven3", true) mavenBuild("jdk11", "install checkstyle:check -DskipTests", "maven3", true) recordIssues( enabledForFailure: true, aggregatingResults: true, @@ -90,7 +90,7 @@ pipeline { agent { node { label 'linux' } } steps { timeout(time: 30, unit: 'MINUTES') { - mavenBuild("jdk8", "-Pcompact3 install -DskipTests", "maven3", true) + mavenBuild("jdk8", "-Pcompact3 clean install -DskipTests", "maven3", true) warnings consoleParsers: [[parserName: 'Maven'], [parserName: 'Java']] } }