]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Make node labels job-specific
authorGeorge Joseph <gjoseph@digium.com>
Tue, 6 Aug 2019 15:40:54 +0000 (09:40 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 6 Aug 2019 15:50:52 +0000 (09:50 -0600)
Originally, the eligible nodes for a job were labelled only by
"swdev-docker".  So basically any node could run any job.  We had
found that allowing a node to run more than 1 gate at a time was
problematic so we limited the nodes to processing 1 job at a time.
With the creation of the Asterisk 17 branches however, we now have
so many active branches that getting checks and gates through in
a timely manner is problematic when a node can run only 1 job
at a time.

Now the nodes are also labelled by the job type they can run.
For instance: "asterisk-check", "asterisk-gate", etc.  With the
"Throttle Concurrent Builds" plugin, we can now allow a node to
run more than 1 job BUT throttle by job type.  For instance:
  Allow 2 jobs but only 1 asterisk-gate at a time.
Now a node can run 2 checks or 1 check and 1 gate or 1 gate but
not 2 gates at a time.

Change-Id: I2032bf6afbcec5c341d9b852214c0c812d3d6db5

tests/CI/gates.jenkinsfile
tests/CI/periodics-daily.jenkinsfile
tests/CI/ref_debug.jenkinsfile
tests/CI/unittests.jenkinsfile

index bc23781d6fc8d0aedb1313982feff09ac42ecc42..275610433c5d10fd2468882dc435bd13181736b8 100644 (file)
@@ -57,7 +57,7 @@ pipeline {
        
        agent {
                /* All of the stages need to be performed on a docker host */
-               label "swdev-docker"
+               label "asterisk-gate"
        }
 
        stages {
index ae762f8e826df3a654eecd637fea61fec643063f..d9896d115f0ed49d40d0dc16746b9a88d08cc919 100644 (file)
@@ -29,7 +29,7 @@ pipeline {
 
        agent {
                /* All of the stages need to be performed on a docker host */
-               label "swdev-docker"
+               label "asterisk-daily"
        }
 
        stages {
index 0e0f49c1bda67cb7db4a7ccaf2b1ebece0cbd4ec..3c73d0e89df32af36349a23813b29ed7b49b3a98 100644 (file)
@@ -29,7 +29,7 @@ pipeline {
        
        agent {
                /* All of the stages need to be performed on a docker host */
-               label "swdev-docker"
+               label "asterisk-ref-debug"
        }
 
        stages {
index 3961cf538b2bf4e4a30d48cbf337f89b3b093c0c..e57a532537bcb7dbf094ca4e0a0a5f266da12f98 100644 (file)
@@ -59,7 +59,7 @@ pipeline {
        }
        agent {
                /* All of the stages need to be performed on a docker host */
-               label "swdev-docker"
+               label "asterisk-check"
        }
 
        stages {