From 00a4d15bc444627b8876af7263cbb4802637a2f6 Mon Sep 17 00:00:00 2001 From: Zakaria Guennoune <83596451+zguennoune02@users.noreply.github.com> Date: Tue, 26 Oct 2021 15:28:07 +0200 Subject: [PATCH] fix centreon build checkout --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d6868bdcc..00fdabf4d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,6 +16,16 @@ if (env.BRANCH_NAME.startsWith('release-')) { env.BUILD = 'CI' } +def checkoutCentreonBuild() { + dir('centreon-build') { + checkout resolveScm(source: [$class: 'GitSCMSource', + remote: 'https://github.com/centreon/centreon-build.git', + credentialsId: 'technique-ci', + traits: [[$class: 'jenkins.plugins.git.traits.BranchDiscoveryTrait']]], + targets: [BRANCH_NAME, 'master']) + } +} + /* ** Pipeline code. */