From 1c3e5e18fd746bbb6ccd4a09d1fec1bed2f8316b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 24 Jul 2021 20:45:54 +0200 Subject: Jenkins: only build packages if the package changes at all - skip otherwise This will only run the Jenkins Pipeline if Git detects a change in the specified file path. If no change is found in the path, the individual Pipeline statges are skipped. --- packages/frr/Jenkinsfile | 2 +- packages/iproute2/Jenkinsfile | 2 +- packages/linux-kernel/Jenkinsfile | 2 +- packages/minisign/Jenkinsfile | 2 +- packages/opennhrp/Jenkinsfile | 2 +- packages/strongswan/Jenkinsfile | 2 +- packages/wide-dhcpv6/Jenkinsfile | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/frr/Jenkinsfile b/packages/frr/Jenkinsfile index f79a09f7..c3020676 100644 --- a/packages/frr/Jenkinsfile +++ b/packages/frr/Jenkinsfile @@ -28,4 +28,4 @@ def pkgList = [ ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('FRRouting', pkgList, null, true) +buildPackage('FRRouting', pkgList, null, true, "**/packages/frr/*") diff --git a/packages/iproute2/Jenkinsfile b/packages/iproute2/Jenkinsfile index 20ec19c7..ce89aead 100644 --- a/packages/iproute2/Jenkinsfile +++ b/packages/iproute2/Jenkinsfile @@ -29,4 +29,4 @@ def pkgList = [ ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('iproute2', pkgList, null, true) +buildPackage('iproute2', pkgList, null, true, "**/packages/iproute2/*") diff --git a/packages/linux-kernel/Jenkinsfile b/packages/linux-kernel/Jenkinsfile index 0ef7cfc1..812b5df4 100644 --- a/packages/linux-kernel/Jenkinsfile +++ b/packages/linux-kernel/Jenkinsfile @@ -58,4 +58,4 @@ def pkgList = [ ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('Kernel', pkgList, null, true) +buildPackage('Kernel', pkgList, null, true, "**/packages/linux-kernel/*") diff --git a/packages/minisign/Jenkinsfile b/packages/minisign/Jenkinsfile index 0fb15f5d..bfdff158 100644 --- a/packages/minisign/Jenkinsfile +++ b/packages/minisign/Jenkinsfile @@ -28,4 +28,4 @@ def pkgList = [ 'buildCmd': 'cd ..; ./build-minisign.sh'], ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('minisign', pkgList, null, true) +buildPackage('minisign', pkgList, null, true, "**/packages/minisign/*") diff --git a/packages/opennhrp/Jenkinsfile b/packages/opennhrp/Jenkinsfile index 0e1fe15a..61930e59 100644 --- a/packages/opennhrp/Jenkinsfile +++ b/packages/opennhrp/Jenkinsfile @@ -27,4 +27,4 @@ def pkgList = [ ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('opennhrp', pkgList, null, true) +buildPackage('opennhrp', pkgList, null, true, "**/packages/opennhrp/*") diff --git a/packages/strongswan/Jenkinsfile b/packages/strongswan/Jenkinsfile index d8b254f2..6fa02658 100644 --- a/packages/strongswan/Jenkinsfile +++ b/packages/strongswan/Jenkinsfile @@ -27,4 +27,4 @@ def pkgList = [ ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('strongswan', pkgList, null, true) +buildPackage('strongswan', pkgList, null, true, "**/packages/strongswan/*") diff --git a/packages/wide-dhcpv6/Jenkinsfile b/packages/wide-dhcpv6/Jenkinsfile index d4f9c7f6..a7418f3f 100644 --- a/packages/wide-dhcpv6/Jenkinsfile +++ b/packages/wide-dhcpv6/Jenkinsfile @@ -27,4 +27,4 @@ def pkgList = [ ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('wide-dhcpv6', pkgList, null, true) +buildPackage('wide-dhcpv6', pkgList, null, true, "**/packages/wide-dhcpv6/*") -- cgit v1.2.3