]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Prevent Jenkins from triggering jobs back to itself
authorGeorge Joseph <gjoseph@digium.com>
Mon, 16 Jul 2018 18:30:26 +0000 (12:30 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 16 Jul 2018 18:31:32 +0000 (12:31 -0600)
Change-Id: I9cae8bb3d1a2cea335d3ccd88d471832549666fd

tests/CI/gates.jenkinsfile
tests/CI/unittests.jenkinsfile

index 0acecb7b853c1b42ca8491e6daf791264106a234..b25b8eb7b52532ccb31d6cc81c9486eb970d1c23 100644 (file)
@@ -57,6 +57,7 @@ pipeline {
                         */
                        when {
                                not { environment name: 'GERRIT_CHANGE_NUMBER', value: '' }
+                               not { environment name: 'GERRIT_EVENT_ACCOUNT_NAME', value: 'Jenkins2' }
                        }
                        steps {
                                /* Here's where we switch to scripted pipeline */
index c2b16160c0377fa058795f1491ec93cd30218acf..a60169771443612912d5772cce67484addd13b50 100644 (file)
@@ -59,6 +59,7 @@ pipeline {
                         */
                        when {
                                not { environment name: 'GERRIT_CHANGE_NUMBER', value: '' }
+                               not { environment name: 'GERRIT_EVENT_ACCOUNT_NAME', value: 'Jenkins2' }
                        }
                        steps {
                                script {