]> 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:52:43 +0000 (09:52 -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 ca43a60034515fac85c0136021f0f1606481931e..359dbbe258856419dc8c761af6a43e4f0e6ff64d 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 5a37bb9c21f793867f0ff838f32f52b81ca38d15..c91c5e55c550c8ba262c8e34d427240dc1d68730 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 9e20600e094296c5ea565b1d0126fc6af0572367..0d1e522f1a3c175a54aad7cec18f4886c8896ca3 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 c2467d7fb0ef5541b06a9b485efb8ed9c77d6cb8..97d18a865a52fa713f055f0416062ef34e34fc58 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 {