From 5a61d32405b406110171123911c06915fed31c76 Mon Sep 17 00:00:00 2001 From: jose-rZM <100773386+jose-rZM@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:44:20 +0100 Subject: [PATCH] Deploy only in main branch --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5b3cb9e..d01c4cc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -95,6 +95,10 @@ pipeline { } stage('Deploy frontend & backend') { + when { + branch 'main' + } + agent any steps { sh '''