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
pull/1138/head
quicksilver 2020-01-21 13:31:41 +08:00 committed by GitHub
parent 178c2d9276
commit fa2c893901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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