From c3f0140998d2962067b14ec7e88b42e85df97862 Mon Sep 17 00:00:00 2001 From: Bartosz Cichocki Date: Fri, 5 Nov 2021 13:45:52 +0100 Subject: [PATCH] [EGD-7925] Disable cross-product test on release branches This disables builds of Pure tests on Bell release branch and vice versa --- Jenkinsfile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9f47bb4e2906b697bcf3e7d13d27867dc0f5e51b..9d4710be345f123ee78399ef18f8927d07dcbf03 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,6 +30,7 @@ pipeline { JOBS=15 PATH="/usr/local/cmake-3.21.3-linux-x86_64/bin:/usr/local/gcc-arm-none-eabi-10-2020-q4-major/bin:$PATH" } + stages { stage('Check for previous running builds') { steps { @@ -142,7 +143,11 @@ pipeline { XDG_CACHE_HOME="/clang-cache" } - + when { + expression { + return !(env.CHANGE_TARGET ==~ /release\/[0-9]+\.[0-9]+\.[0-9]+-bell/) + } + } steps { echo "Check if branch needs rebasing" sh '''#!/bin/bash -e @@ -226,7 +231,11 @@ pipeline { CCACHE_DIR="/ccache/Linux" XDG_CACHE_HOME="/clang-cache" } - + when { + expression { + return !(env.CHANGE_TARGET ==~ /release\/[0-9]+\.[0-9]+\.[0-9]+-pure/) + } + } steps { echo "Check if branch needs rebasing" sh '''#!/bin/bash -e