Merge branch 'stable-2.15' into stable-2.16

* stable-2.15:
  Jenkinsfile: Always build java sources if WORKSPACE file changed

Change-Id: I986d5c93a1d8d64cb6a3fa8fa3844c9a2f45a6fd
This commit is contained in:
David Ostrovsky
2019-11-13 06:11:16 -08:00
committed by David Pursehouse

5
Jenkinsfile vendored
View File

@@ -139,7 +139,7 @@ def collectBuildModes() {
def polygerritFiles = changedFiles.findAll { it.startsWith("polygerrit-ui") ||
it.startsWith("lib/js") }
if(polygerritFiles.size() > 0 || changedFiles.contains("WORKSPACE")) {
if(polygerritFiles.size() > 0) {
if(changedFiles.size() == polygerritFiles.size()) {
println "Only PolyGerrit UI changes detected, skipping other test modes..."
Builds.modes = ["polygerrit"]
@@ -147,6 +147,9 @@ def collectBuildModes() {
println "PolyGerrit UI changes detected, adding 'polygerrit' validation..."
Builds.modes += "polygerrit"
}
} else if(changedFiles.contains("WORKSPACE")) {
println "WORKSPACE file changes detected, adding 'polygerrit' validation..."
Builds.modes += "polygerrit"
}
}