Jennkins multibranch jenkinsfile svn check

I have a Jenkins file located in the [my svn branch] \ build folder, and it checks the code on the slave node and builds.

My multi-segment project finds the branch correctly, but checks the entire svn branch on the main read-only jenkins file instead of checking only the jenkinsfile itself only [my svn branch] \ build folder.

This is a serious storage and performance issue, is there any solution for this?

+4
source share
1 answer

In the configuration of your multi-brand pipeline, enter: branch / * / build in the "include" field (I assume that you have all svn branches in the branches folder, and the URL of your assembly folder looks something like this: svn_url / branches / my_new_branch / assembly) Then it will only scan the installation folder in each branch.

Warning. After changing this configuration property, your multiband pipeline will only deacon 'build', if you want to index other build folders, you can list them in this property, that is: Include: trunk / build, trunk / other_build, branches / * / build, branches / * / other_build But a cleaner approach is to get only one assembly per multibrand pipeline

0
source

Source: https://habr.com/ru/post/1687132/


All Articles