[JIRA] (JENKINS-62140) Allow use of remote file for non-multibranch pipeline

4 views
Skip to first unread message

laurent.goujon@online.fr (JIRA)

unread,
May 1, 2020, 3:04:09 PM5/1/20
to jenkinsc...@googlegroups.com
Laurent Goujon created an issue
 
Jenkins / Improvement JENKINS-62140
Allow use of remote file for non-multibranch pipeline
Issue Type: Improvement Improvement
Assignee: Aytunc BEKEN
Components: remote-file-plugin
Created: 2020-05-01 19:03
Priority: Minor Minor
Reporter: Laurent Goujon

Remote file plugin hides itself from the pipeline reference dropdown for non-multibranch jobs, but this would be a great addition too and this restriction should probably be relaxed.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

aytuncbeken.ab@gmail.com (JIRA)

unread,
May 1, 2020, 5:15:03 PM5/1/20
to jenkinsc...@googlegroups.com
Aytunc BEKEN commented on Improvement JENKINS-62140
 
Re: Allow use of remote file for non-multibranch pipeline

Hi, Thanks for the feedback. In order to understand the issue well, I need to know more,

  • Could you please specify job type ? If it is Pipeline Job, It is hidden on purpose.

Best.

laurent.goujon@online.fr (JIRA)

unread,
May 1, 2020, 6:48:03 PM5/1/20
to jenkinsc...@googlegroups.com

Indeed, pipeline jobs. I haven't found why it is hidden on purpose, but it looks like it could be useful too. Isn't a pipeline job basically a multibranch job with only one branch?

In my case I want to use a Jenkinsfile with a repository I cannot modify for a single job.

aytuncbeken.ab@gmail.com (JIRA)

unread,
May 3, 2020, 10:04:02 AM5/3/20
to jenkinsc...@googlegroups.com

in Pipeline jobs there is a option called Pipeline from SCM, where you can get the Pipeline script from Git/Subversion/etc.. For single pipeline context, this option and Remote file plugin do the same. That is why it is hidden in pipelines. Therefore my question is, what is the lacking feature between these two ? from your point ?

laurent.goujon@online.fr (JIRA)

unread,
May 4, 2020, 12:20:03 PM5/4/20
to jenkinsc...@googlegroups.com

Is it though? In multipipeline, git is configured through the "branch sources" section, while the build configuration configures where Jenkinsfile can be found on all branches. But it doesn't allow you to configure to fetch Jenkinsfile in a separate repository.

 

That's this use-case I would like to be supported by the pipeline jobs. When using "Pipeline from SCM", you need to configure one (or multiple) git repository, with one containing your Jenkinsfile. If Jenkinsfile and code to build are present in 2 separate repositories, you need 2 repositories, triggers apply to both, Jenkinsfile itself need to adapt itself to having both repositories, it's quite intrusive whereas I'd looking for something seamless like Jenkinsfile was in the same repository as the code.

aytuncbeken.ab@gmail.com (JIRA)

unread,
May 10, 2020, 2:10:02 PM5/10/20
to jenkinsc...@googlegroups.com

Let me summarize what I understood.
You want to define two repository sources in Pipeline jobs ( not - multibranch pipeline). One of them will be repository for the code, the other one will be for the Jenkins file.
Is that right ? If Yes, implementing this with Remote FIle plugin will not be possible as It is implemented for MultiBranch Projects. May this can be a new plugin.

Reply all
Reply to author
Forward
0 new messages