diff --git a/Jenkinsfile b/Jenkinsfile index c988ae8..18142b5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -470,7 +470,7 @@ if (!binding.hasVariable('failureEmailTo')) { } // Common settings -def mvnCommon = "-Dstyle.color=always -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" +def mvnCommon = "-Dstyle.color=always -DrequireLastBuild=${params.requireLastBuild} -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" def buildPhases = 'clean process-test-classes' // Determine nice command prefix or empty string for none diff --git a/book/Jenkinsfile b/book/Jenkinsfile index 18dcb20..2334fb6 100644 --- a/book/Jenkinsfile +++ b/book/Jenkinsfile @@ -476,7 +476,7 @@ if (!binding.hasVariable('failureEmailTo')) { } // Common settings -def mvnCommon = "-Dstyle.color=always -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" +def mvnCommon = "-Dstyle.color=always -DrequireLastBuild=${params.requireLastBuild} -N -U -Pjenkins,POST-SNAPSHOT${extraProfiles.isEmpty() ? '' : (',' + extraProfiles.join(','))}" def buildPhases = 'clean process-test-classes' // Determine nice command prefix or empty string for none