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. */