From 1db549888a43adbfd8003be4f7ee553b6e2890a9 Mon Sep 17 00:00:00 2001 From: Constantin Nicolai Date: Wed, 22 Nov 2023 14:22:11 +0100 Subject: [PATCH] reaadding condition --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 29dcd5f8e..6e3be75d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -98,14 +98,14 @@ pipeline { } stage('Check Dependencies') { - // when { - // expression { - // if (currentBuild.number > 1) { - // return (((currentBuild.getStartTimeInMillis() - currentBuild.previousBuild.getStartTimeInMillis()) > 2592000000) && (env.BRANCH_NAME ==~ SNAPSHOT_BRANCH_REGEX)) //2592000000 30 days in milliseconds - // } - // return false - // } - // } + when { + expression { + if (currentBuild.number > 1) { + return (((currentBuild.getStartTimeInMillis() - currentBuild.previousBuild.getStartTimeInMillis()) > 2592000000) && (env.BRANCH_NAME ==~ SNAPSHOT_BRANCH_REGEX)) //2592000000 30 days in milliseconds + } + return false + } + } steps { script { DOCKER_API.inside {