Hi,
So using scripted Jenkinsfile. I've setup projects where it loads a file, and checks out those repositories dependencies, if they have a matching branch name then it builds them. The Jenkinsfile is used for "multibranchPipelineJob", then other jenkins jobs for develop and release use "pipelineJob", plus some environment variables so release knows it does the release stage.
String prerequisiteProjectName = 'parent-project-example'
String prerequisiteDir = env.WORKSPACE + '/prerequisite/' + prerequisiteProjectName
dir(prerequisiteDir) {
try {
git branch: env.BRANCH_NAME,
url: scmUrlPull,
credentialsId: env.SCM_CREDENTIALS_ID,
changelog: false
} catch (ex) {
deleteDir()
}
}
But regarding your original question, about freestyle and multiple scm, then I only use freestyle to execute groovy to create/maintain all the other jobs/views.
John