diff --git a/Jenkinsfile b/Jenkinsfile index ef40d10..fbf6933 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -466,7 +466,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 2a5ec03..3907a36 100644 --- a/book/Jenkinsfile +++ b/book/Jenkinsfile @@ -475,7 +475,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