From 27bd4cc768b78901afa8ddcecbffcefdf73c606b Mon Sep 17 00:00:00 2001 From: "AO Industries, Inc" Date: Fri, 8 Sep 2023 00:50:14 +0000 Subject: [PATCH] Pass requireLastBuild parameter to Maven --- Jenkinsfile | 2 +- book/Jenkinsfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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