summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-24 21:24:45 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-24 21:25:01 +0200
commitabc6e3ebb72c8c37d2a49e822077bc656c11c0cf (patch)
treedb4d6ed73c0849535a4b82655229415abfd2780a
parent814b4f9a8e81880fb5170d350ac84c9a36590b16 (diff)
downloadvyos-build-abc6e3ebb72c8c37d2a49e822077bc656c11c0cf.tar.gz
vyos-build-abc6e3ebb72c8c37d2a49e822077bc656c11c0cf.zip
Kernel: only build packages if the package changes at all
-rw-r--r--packages/linux-kernel/Jenkinsfile28
1 files changed, 9 insertions, 19 deletions
diff --git a/packages/linux-kernel/Jenkinsfile b/packages/linux-kernel/Jenkinsfile
index 75c20ea3..17f21317 100644
--- a/packages/linux-kernel/Jenkinsfile
+++ b/packages/linux-kernel/Jenkinsfile
@@ -64,7 +64,6 @@ pipeline {
environment {
DEBIAN_ARCH = sh(returnStdout: true, script: 'dpkg --print-architecture').trim()
BASE_DIR = getJenkinsfilePath()
- CHANGESET_DIR = getChangeSetPath()
}
stages {
stage('Fetch') {
@@ -81,9 +80,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -111,9 +109,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -133,9 +130,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -154,9 +150,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -177,9 +172,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -197,9 +191,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -216,9 +209,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -233,9 +225,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}
@@ -255,9 +246,8 @@ pipeline {
beforeOptions true
beforeAgent true
anyOf {
- changeset pattern: "${env.CHANGESET_DIR}"
+ changeset pattern: "**/packages/linux-kernel/*"
changeset pattern: "**/data/defaults.json"
- triggeredBy 'TimerTrigger'
triggeredBy cause: "UserIdCause"
}
}