From 8ef3f545823642749653f15f8427c12e6bb6670d Mon Sep 17 00:00:00 2001 From: adelyaou Date: Thu, 23 Oct 2025 11:18:26 +0700 Subject: [PATCH] fix: ensure Jenkins checks out main branch before push --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 0b78cdc..e18e4d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -70,6 +70,7 @@ pipeline { credentialsId: env.MANIFEST_CRED_ID ]] ]) + sh "git checkout ${env.BRANCH} || git checkout -b ${env.BRANCH}" } } }