Alternative for Multiple SCM plugin

32 views
Skip to first unread message

Adharsha sri

unread,
Apr 14, 2022, 9:38:12 AMApr 14
to jenkins...@googlegroups.com
Hi Team, 
Is there  any alternative plugin for Multiple SCM plugin to checkout multiple git repos in jenkins freestyle.

Adharsha sri

unread,
Apr 18, 2022, 12:43:10 AMApr 18
to jenkins...@googlegroups.com
Hi, 
Can anyone please suggest the alternative for multiple SCM plugin.

John Patrick

unread,
Apr 18, 2022, 5:21:09 AMApr 18
to jenkins...@googlegroups.com
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



--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJWGB6ppeh1Kdp2hRgarCONejtHUw3dp1qsRr%2BVQvM_h3iKD5w%40mail.gmail.com.

Adharsha sri

unread,
Apr 19, 2022, 11:19:00 AMApr 19
to jenkins...@googlegroups.com
Hi, 
Thanks for the reply.
Having 100's of pipeline projects in Jenkins may lead to performance and disk space issues on Jenkins controller right. Correct me if I am wrong.



Mark Waite

unread,
Apr 19, 2022, 11:58:03 AMApr 19
to Jenkins Users
On Tuesday, April 19, 2022 at 9:19:00 AM UTC-6 adharsh wrote:
Hi, 
Thanks for the reply.
Having 100's of pipeline projects in Jenkins may lead to performance and disk space issues on Jenkins controller right. Correct me if I am wrong.


I run thousands of Pipeline projects on my Jenkins and have not see performance issues.  Jobs do use disc space, but that happens whether they are Pipeline or Freestyle.  It is a mistake to avoid Pipeline jobs because you're worried about performance and disk space issues with hundreds of jobs. 
Reply all
Reply to author
Forward
0 new messages