[JIRA] (JENKINS-45273) Pipeline Multibranch - Add the possibility to use a Jenkinsfile from other SCM

8 views
Skip to first unread message

svanoort@cloudbees.com (JIRA)

unread,
Apr 12, 2018, 11:41:03 AM4/12/18
to jenkinsc...@googlegroups.com
Sam Van Oort updated an issue
 
Jenkins / Improvement JENKINS-45273
Pipeline Multibranch - Add the possibility to use a Jenkinsfile from other SCM
Change By: Sam Van Oort
Priority: Blocker Minor
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

svanoort@cloudbees.com (JIRA)

unread,
Apr 12, 2018, 11:46:03 AM4/12/18
to jenkinsc...@googlegroups.com
Sam Van Oort commented on Improvement JENKINS-45273
 
Re: Pipeline Multibranch - Add the possibility to use a Jenkinsfile from other SCM

It's a bit hard to follow the discussion here, but sounds like there is actually a way to accomplish this (albeit a bit awkwardly), and I know of at least one proprietary Jenkins extension offering what it sounds like this does, so am adjusting the priority downward a bit.

Please feel free to amend the title/description to more clearly explain what specifically needed here and why it's critical if you think this should be a critical-priority improvement.

mdaventini@hotmail.com (JIRA)

unread,
Apr 12, 2018, 1:02:03 PM4/12/18
to jenkinsc...@googlegroups.com

I reported this one! But now we are using shared libraries, so Jenkinsfile only contains the call to the shared library

Example:

DefaultJenkinsPipeline()

 

svanoort@cloudbees.com (JIRA)

unread,
Apr 12, 2018, 1:08:02 PM4/12/18
to jenkinsc...@googlegroups.com

Mariela Daventini Ah! Okay, excellent, best possible outcome. Does that mean I can go ahead and close this one out?

mdaventini@hotmail.com (JIRA)

unread,
Apr 12, 2018, 2:21:02 PM4/12/18
to jenkinsc...@googlegroups.com

I think so Sam Van Oort

If any voter needs support, I really recomend using shared libraries!

mrichar2@paychex.com (JIRA)

unread,
Sep 7, 2018, 2:28:02 PM9/7/18
to jenkinsc...@googlegroups.com
Mark R commented on Improvement JENKINS-45273

Use case: I have a forked opensource repo that I want to make changes to but don't want to pollute with a Jenkinsfile to build with internally. The Jenkinsfile must thus be in a different repository (without playing games in git to "hide" the Jenkinsfile commit(s)). If however I put it in a different repository I loose the ability to have bitbucket trigger the job on push to automatically build branches - right now it will only detect changes from the repository that has the Jenkinsfile which really won't change.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Sep 8, 2018, 10:50:02 AM9/8/18
to jenkinsc...@googlegroups.com

Mark R you can use the Pipeline Multibranch Defaults plugin for this, or if you are a CloudBees customer there is a “custom marker file” feature which is more flexible still.

dnusbaum@cloudbees.com (JIRA)

unread,
Mar 16, 2020, 10:44:07 AM3/16/20
to jenkinsc...@googlegroups.com
Devin Nusbaum resolved as Fixed
 
Change By: Devin Nusbaum
Status: Open Resolved
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

dnusbaum@cloudbees.com (JIRA)

unread,
Mar 16, 2020, 10:44:07 AM3/16/20
to jenkinsc...@googlegroups.com
Devin Nusbaum commented on Improvement JENKINS-45273
 
Re: Pipeline Multibranch - Add the possibility to use a Jenkinsfile from other SCM

I am closing this ticket. As far as I know there are two open source plugins that support this use case directly:

As Jesse mentioned, CloudBees also implemented a feature like this for CloudBees customers, see the documentation here.

If those plugins do not have the features you want, I would open an RFE against the one you want to use, describing your use case and explaining why the current functionality of the plugin is not adequate.

aytuncbeken.ab@gmail.com (JIRA)

unread,
Mar 28, 2020, 9:31:04 AM3/28/20
to jenkinsc...@googlegroups.com

Devin Nusbaum I agree with, I will try to change the plugin name. Thanks for the suggestion.

aytuncbeken.ab@gmail.com (JIRA)

unread,
Mar 28, 2020, 9:31:06 AM3/28/20
to jenkinsc...@googlegroups.com
Aytunc BEKEN edited a comment on Improvement JENKINS-45273
[~dnusbaum] I agree with you , I will try to change the plugin name. Thanks for the suggestion.
Reply all
Reply to author
Forward
0 new messages