[Asterisk-code-review] CI: Prevent Jenkins from triggering jobs back to itself (asterisk[13])

George Joseph asteriskteam at digium.com
Mon Jul 16 14:33:29 CDT 2018


George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/9464 )

Change subject: CI:  Prevent Jenkins from triggering jobs back to itself
......................................................................

CI:  Prevent Jenkins from triggering jobs back to itself

Change-Id: I9cae8bb3d1a2cea335d3ccd88d471832549666fd
---
M tests/CI/gates.jenkinsfile
M tests/CI/unittests.jenkinsfile
2 files changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Jenkins2: Verified
  George Joseph: Looks good to me, approved; Approved for Submit



diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile
index 0acecb7..b25b8eb 100644
--- a/tests/CI/gates.jenkinsfile
+++ b/tests/CI/gates.jenkinsfile
@@ -57,6 +57,7 @@
 			 */
 			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 */
diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile
index c2b1616..a601697 100644
--- a/tests/CI/unittests.jenkinsfile
+++ b/tests/CI/unittests.jenkinsfile
@@ -59,6 +59,7 @@
 			 */
 			when {
 				not { environment name: 'GERRIT_CHANGE_NUMBER', value: '' }
+				not { environment name: 'GERRIT_EVENT_ACCOUNT_NAME', value: 'Jenkins2' }
 			}
 			steps {
 				script {

-- 
To view, visit https://gerrit.asterisk.org/9464
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I9cae8bb3d1a2cea335d3ccd88d471832549666fd
Gerrit-Change-Number: 9464
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180716/70afa020/attachment.html>


More information about the asterisk-code-review mailing list