fix: ensure Jenkins checks out main branch before push

This commit is contained in:
adelyaou 2025-10-23 11:18:26 +07:00
parent 96ca064c02
commit 8ef3f54582
1 changed files with 1 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -70,6 +70,7 @@ pipeline {
credentialsId: env.MANIFEST_CRED_ID
]]
])
sh "git checkout ${env.BRANCH} || git checkout -b ${env.BRANCH}"
}
}
}