From fa2c893901ea2a0df96b8763299bb09bacf4b15e Mon Sep 17 00:00:00 2001 From: quicksilver Date: Tue, 21 Jan 2020 13:31:41 +0800 Subject: [PATCH] Don't skip ci when triggered by a time (#1113) * run hadolint with reviewdog * add LINCENSE in Dockerfile * run hadolint with reviewdog * Reporter of reviewdog command is "github-pr-check" * format Dockerfile * ignore DL3007 in hadolint * clean up old docker images * Add GPU sharing solution on native Kubernetes * nightly test mailer * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Test filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Filtering for specific paths in Jenkins CI * Don't skip ci when triggered by a time * Don't skip ci when triggered by a time --- ci/jenkins/Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci/jenkins/Jenkinsfile b/ci/jenkins/Jenkinsfile index 735cefe719..ccdc41d104 100644 --- a/ci/jenkins/Jenkinsfile +++ b/ci/jenkins/Jenkinsfile @@ -67,6 +67,7 @@ pipeline { when { allOf { anyOf { + expression { isEmptyChangelog() == true } changeset 'ci/**' changeset 'core/**' changeset 'docker/**' @@ -128,6 +129,7 @@ pipeline { when { allOf { anyOf { + expression { isEmptyChangelog() == true } changeset 'ci/**' changeset 'core/**' changeset 'docker/**' @@ -165,6 +167,7 @@ pipeline { when { allOf { anyOf { + expression { isEmptyChangelog() == true } changeset 'ci/**' changeset 'core/**' changeset 'docker/**' @@ -254,6 +257,13 @@ pipeline { } } +boolean isEmptyChangelog() { + if (currentBuild.changeSets.size() == 0) { + return true + } + return false +} + boolean isTimeTriggeredBuild() { if (currentBuild.getBuildCauses('hudson.triggers.TimerTrigger$TimerTriggerCause').size() != 0) { return true