From 3fc9985bc0ce7bc9a9cd57b1b44f2935f247f3c6 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Fri, 15 Apr 2022 15:49:41 +0200 Subject: [PATCH] add new triggeredBy nagative clause --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 844af6e..78026e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,7 +34,12 @@ pipeline { } stage('Add new pending deploy ') { when{ - environment name: 'IS_CRON', value: 'True' + allOf{ + not { + triggeredBy 'TimerTrigger' + } + environment name: 'IS_CRON', value: 'True' + } } steps { echo 'New deploy of ${job} appended to the deploy file'