diff options
author | David Ostrovsky <david@ostrovsky.org> | 2019-11-13 06:10:24 -0800 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2019-11-13 06:10:24 -0800 |
commit | b2127602d4b9ed1b5c158d374052a5e315414121 (patch) | |
tree | c3d7e61f272784ab756c396833e4063b391844fc | |
parent | 6aee3b371564f2e9e23cbdfd39d718d11a0baa88 (diff) | |
parent | 1a134ba6d492c928e2664cfdab20468538fb8442 (diff) |
Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
Jenkinsfile: Always build java sources if WORKSPACE file changed
Change-Id: Icf16c395bbb87e9b758e6435a9a1976a23754126
-rw-r--r-- | Jenkinsfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 780336458b..29a3d1584e 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" } } |