I am trying to filter the svn url by the regular expression in jenkins. I want to include only branches and trunk in the regular expression, can any one suggest me for the filter?
That depends on what directory structure you are using. I am asuming you are using the following structure:
-projectA
-trunk
-tags
-branches
I also assume that the url is otherwise valid
(branches|trunk)\/([^/]+)
In case of a branch, this will give you the branch name. In case of trunk, the first sub directory/file of the path
simply use branches|trunk
in case you don't want the name
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.