dd010101 / vyos-jenkins

Instructions on how to build your own vyos package mirror for stable branches (1.3 equuleus/1.4 sagitta) with Jenkins (for ISO build)
53 stars 15 forks source link

Move branch filter logic #30

Closed GurliGebis closed 1 week ago

GurliGebis commented 1 week ago

By moving it up here, we make sure only jobs that should be built is added to the JOBS array in the first place. This is a better way, since the skipped jobs won't occupy the build slots (since we take X number of jobs from the JOBS array for each batch, for a CONCURRENT_JOBS_COUNT of 10 - if 6 is skipped, only 4 jobs will be started).

Now, they are not added to the JOBS array, so the rest works as intended.

Before:

Building jobs in Jenkins...
Total number of jobs: 91
Concurrent jobs: 10 (Can be overridden by setting the CONCURRENT_JOBS_COUNT environment variable)

[   Running   ] Package: aws-gateway-load-balancer-tunnel-handler - Branch: sagitta
[   Running   ] Package: ddclient - Branch: sagitta
[   Skipped   ] Package: dropbear - Branch: equuleus (excluded)
[   Running   ] Package: dropbear - Branch: sagitta
[   Running   ] Package: ethtool - Branch: sagitta
[   Skipped   ] Package: frr - Branch: equuleus (excluded)
[   Running   ] Package: frr - Branch: sagitta
[   Skipped   ] Package: hostap - Branch: equuleus (excluded)
[   Running   ] Package: hostap - Branch: sagitta
[   Running   ] Package: hsflowd - Branch: sagitta

After:

Building jobs in Jenkins...
Total number of jobs: 91
Concurrent jobs: 10 (Can be overridden by setting the CONCURRENT_JOBS_COUNT environment variable)

[   Running   ] Package: aws-gateway-load-balancer-tunnel-handler - Branch: sagitta
[   Running   ] Package: ddclient - Branch: sagitta
[   Running   ] Package: dropbear - Branch: sagitta
[   Running   ] Package: ethtool - Branch: sagitta
[   Running   ] Package: frr - Branch: sagitta
[   Running   ] Package: hostap - Branch: sagitta
[   Running   ] Package: hsflowd - Branch: sagitta
[   Running   ] Package: hvinfo - Branch: sagitta
[   Running   ] Package: ipaddrcheck - Branch: sagitta
[   Running   ] Package: isc-dhcp - Branch: sagitta
dd010101 commented 1 week ago

Sure.

GurliGebis commented 1 week ago

Seems like I created it as a draft by mistake - it can be merged now 😊

dd010101 commented 1 week ago

👍