From 2ea2f63f291659b1b9007a3c2765a50158f70211 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Wed, 26 Feb 2025 06:31:53 +0000 Subject: [PATCH] Pipeline will now only publish to git.reslate.systems on main branch --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e3261b1..d84810d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,6 +35,10 @@ pipeline { stage("publish") { parallel { stage ("git.reslate.systems") { + when { + branch '**/main' + } + environment { CREDS = credentials('username-password-rs-git') }