CI: Prevent Jenkins from triggering jobs back to itself

Change-Id: I9cae8bb3d1a2cea335d3ccd88d471832549666fd
This commit is contained in:
George Joseph
2018-07-16 12:30:26 -06:00
parent d15ef68892
commit a9cef123d9
2 changed files with 2 additions and 0 deletions

View 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 */

View 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 {