summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2019-11-13 05:06:02 -0800
committerDavid Ostrovsky <david@ostrovsky.org>2019-11-13 05:33:56 -0800
commit1a134ba6d492c928e2664cfdab20468538fb8442 (patch)
treece567d39dcb10e014117f8d31f9640435ea10307
parent7637d661b911d6fa2a35bd48e1e10b35312c379e (diff)
Jenkinsfile: Always build java sources if WORKSPACE file changed
Bug: Issue 11916 Change-Id: I0d273f8536c3b2ee10f8a6f938bc8dc3374ce0a5
-rw-r--r--Jenkinsfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 1b9e35fbcb..ebf2136b4b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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"
}
}