From 2b3bee580968d0a66d6b8a6f213fc82a0ff65488 Mon Sep 17 00:00:00 2001 From: Matias Pou Date: Tue, 6 Jan 2026 16:09:22 -0300 Subject: [PATCH] test --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index a09d006..e9d2293 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,12 @@ pipeline { sh 'git submodule update --init --recursive' + if (env.BRANCH_NAME !== 'main') { + echo "[!] Not on main branch. Stopping pipeline." + currentBuild.result = 'SUCCESS' + error("Stopping pipeline: not on main branch.") + } + def tagName = sh( script: "git describe --tags --exact-match 2>/dev/null || echo 'no-tag'", returnStdout: true