diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-07-19 23:52:01 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-07-19 23:52:01 +0300 |
commit | 1ab23207b52cb1fd8413f5ecfdcfe79f2d3213bb (patch) | |
tree | b15281cc788261c4081cca83dc16e49bc49c3ef6 /scripts | |
parent | 0c39f1f537c0974930a13e480b6888a5f315c053 (diff) |
[ci] Don't use method which is not allowed in Groovy sandbox
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/ci/pipeline/osx-package.groovy | 2 | ||||
-rw-r--r-- | scripts/ci/pipeline/sdks-archive.groovy | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/ci/pipeline/osx-package.groovy b/scripts/ci/pipeline/osx-package.groovy index 9fc2832f3e5..bf71ba52c7e 100644 --- a/scripts/ci/pipeline/osx-package.groovy +++ b/scripts/ci/pipeline/osx-package.groovy @@ -15,7 +15,7 @@ if (monoBranch == 'master') { ]) // multi-branch pipelines still get triggered for each commit, skip these builds on master by checking whether this build was timer-triggered - if (currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').isEmpty()) { + if (currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').size() == 0) { echo "Skipping per-commit build on master." return } diff --git a/scripts/ci/pipeline/sdks-archive.groovy b/scripts/ci/pipeline/sdks-archive.groovy index ee821f4045a..908a8c59f9d 100644 --- a/scripts/ci/pipeline/sdks-archive.groovy +++ b/scripts/ci/pipeline/sdks-archive.groovy @@ -8,7 +8,7 @@ if (monoBranch == 'master') { ]) // multi-branch pipelines still get triggered for each commit, skip these builds on master by checking whether this build was timer-triggered - if (currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').isEmpty()) { + if (currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').size() == 0) { echo "Skipping per-commit build on master." return } |