Jenkins Multibranch Pipeline and checkout of subversion

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins Multibranch Pipeline and checkout of subversion

Kristian-2
Hey,

I think there is something odd with Multibranch plugin or I have done
something wrong. I have a repository:

> http://svnserver/some/svn/repo

This repo has a trunk path and some branches like this:

- http://svnserver/some/svn/repo/trunk
- - http://svnserver/some/svn/repo/branch/1.0
- - http://svnserver/some/svn/repo/branch/2.0
and so on

So, in every of these paths, I've added a file names "Jenkinsfile",
where I have something in it like

node('theNodeForTheCurrentBranch') {
    checkout ([ $class: 'SubersionSCM' ...
}

Now, I click on "Branch Indexing" -> "Run Now" on this Multibranch
project. Now, this project creates some new jobs according to the
Jenkinsfiles in trunk and the branches, e.g.

-> Multibranch Job Name/trunk
-> Multibranch Job Name/branch/1.0
-> Multibranch Job Name/branch/2.0

Now, when I start one of these jobs, the job first checkouts the svn
repo on the master, then loads the Jenkinsfile, and then checkouts the
svn repo on the node on which the job should checkout.

Is there a way to change the behaviour so the multibranch job checks
out only the Jenkinsfile on the master and not the whole repository?
Or is there something I missunderstood something and therefore did
something wrong?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO5HUhPgyowfOteTbpX%2BVWK%3DBzt1bxkCMg_LaE8R5WG65kJ1gA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Multibranch Pipeline and checkout of subversion

Gilad Baruchian
Did you find any solution for that? I have this problem as well


On Wednesday, February 8, 2017 at 3:16:43 PM UTC+2, Kristian X wrote:
Hey,

I think there is something odd with Multibranch plugin or I have done
something wrong. I have a repository:

> <a href="http://svnserver/some/svn/repo" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbQS0pcsGQzX6dPU64GL1TGh_b6A&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFbQS0pcsGQzX6dPU64GL1TGh_b6A&#39;;return true;">http://svnserver/some/svn/repo

This repo has a trunk path and some branches like this:

- <a href="http://svnserver/some/svn/repo/trunk" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo%2Ftrunk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGgeQWcEGkBSp1-tdvoipEVRusyRw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo%2Ftrunk\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGgeQWcEGkBSp1-tdvoipEVRusyRw&#39;;return true;">http://svnserver/some/svn/repo/trunk
- - <a href="http://svnserver/some/svn/repo/branch/1.0" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo%2Fbranch%2F1.0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_gBvCQPg-arlsRZL4O5TCzMVBzQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo%2Fbranch%2F1.0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG_gBvCQPg-arlsRZL4O5TCzMVBzQ&#39;;return true;">http://svnserver/some/svn/repo/branch/1.0
- - <a href="http://svnserver/some/svn/repo/branch/2.0" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo%2Fbranch%2F2.0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-11oi90ShjOhOe-wvJfS9QGrZUw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsvnserver%2Fsome%2Fsvn%2Frepo%2Fbranch%2F2.0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF-11oi90ShjOhOe-wvJfS9QGrZUw&#39;;return true;">http://svnserver/some/svn/repo/branch/2.0
and so on

So, in every of these paths, I've added a file names "Jenkinsfile",
where I have something in it like

node('theNodeForTheCurrentBranch') {
    checkout ([ $class: 'SubersionSCM' ...
}

Now, I click on "Branch Indexing" -> "Run Now" on this Multibranch
project. Now, this project creates some new jobs according to the
Jenkinsfiles in trunk and the branches, e.g.

-> Multibranch Job Name/trunk
-> Multibranch Job Name/branch/1.0
-> Multibranch Job Name/branch/2.0

Now, when I start one of these jobs, the job first checkouts the svn
repo on the master, then loads the Jenkinsfile, and then checkouts the
svn repo on the node on which the job should checkout.

Is there a way to change the behaviour so the multibranch job checks
out only the Jenkinsfile on the master and not the whole repository?
Or is there something I missunderstood something and therefore did
something wrong?

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/de5928da-96b8-4f32-bee3-da4699926ea9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Multibranch Pipeline and checkout of subversion

Gilad Baruchian
In reply to this post by Kristian-2

Did you find any solution for that? I have this problem as well

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3489065d-dac2-48a9-8035-7418818849dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins Multibranch Pipeline and checkout of subversion

Robert Hales
https://groups.google.com/forum/#!topic/jenkinsci-users/yYeedbtXT4g


On Monday, October 9, 2017 at 1:38:24 AM UTC-6, Gilad Baruchian wrote:

Did you find any solution for that? I have this problem as well

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3f7e5535-5fe9-49d8-9f78-711f7ad2ee5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.