jenkinsci / jenkinsci/subversion-plugin
[JENKINS-40692] Excluded regions don't work
- Dominant language
- Java
- Stars
- 131
- Forks
- 275
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 6
Description
Excluded regions for subversion scm polling doesn't work for us. Our repository URL is:
```
http://svn.ontwikkel.local/svn/LSV/02 Source code/trunk
```
In the workspace are (among others) the following directories:
```
.svn
ci
lib
lsv
lsv-spoorws-stub
lsv-voorvalws-stub}}
(etc...)
```
We don't want the build to be triggered upon changes underneath the lsv-spoorws-stub and lsv-voorvalws-stub directories. However, whatever we put in the "excluded regions" field, the build is always triggered whenever we check in a change to our test file (lsv-spoorws-stub/test.txt). We have tried the following permutations:
```
lsv-spoorws-stub/.*
lsv-voorvalws-stub/.*
/lsv-spoorws-stub/.*
/lsv-voorvalws-stub/.*
/trunk/lsv-spoorws-stub/.*
/trunk/lsv-voorvalws-stub/.*
/svn/LSV/02 Source code/trunk/lsv-spoorws-stub/.*
/svn/LSV/02 Source code/trunk/lsv-voorvalws-stub/.*
/svn/LSV/02%20Source%20code/trunk/lsv-spoorws-stub/.*
/svn/LSV/02%20Source%20code/trunk/lsv-voorvalws-stub/.*
/svn/LSV/02?Source?code/trunk/lsv-spoorws-stub/.*
/svn/LSV/02?Source?code/trunk/lsv-voorvalws-stub/.*
```
None of them worked. Could the spaces in the URL be causing the problem? Is there any debug logging we can activate so that we can see exactly what the plugin is doing and why it is deciding that the patterns don't match?
By the way, it would be good to add to this feature's help text against what the regular expression is evaluated.
---
Originally reported by captain_chaos, imported from: Excluded regions don't work
Raw content of original issue
Excluded regions for subversion scm polling doesn't work for us. Our repository URL is:
http://svn.ontwikkel.local/svn/LSV/02 Source code/trunkIn the workspace are (among others) the following directories:
.svn
ci
lib
lsv
lsv-spoorws-stub
lsv-voorvalws-stub}}
(etc...)We don't want the build to be triggered upon changes underneath the lsv-spoorws-stub and lsv-voorvalws-stub directories. However, whatever we put in the "excluded regions" field, the build is always triggered whenever we check in a change to our test file (lsv-spoorws-stub/test.txt). We have tried the following permutations:
lsv-spoorws-stub/.*
lsv-voorvalws-stub/.*/lsv-spoorws-stub/.*
/lsv-voorvalws-stub/.*/trunk/lsv-spoorws-stub/.*
/trunk/lsv-voorvalws-stub/.*/svn/LSV/02 Source code/trunk/lsv-spoorws-stub/.*
/svn/LSV/02 Source code/trunk/lsv-voorvalws-stub/.*/svn/LSV/02%20Source%20code/trunk/lsv-spoorws-stub/.*
/svn/LSV/02%20Source%20code/trunk/lsv-voorvalws-stub/.*/svn/LSV/02?Source?code/trunk/lsv-spoorws-stub/.*
/svn/LSV/02?Source?code/trunk/lsv-voorvalws-stub/.*None of them worked. Could the spaces in the URL be causing the problem? Is there any debug logging we can activate so that we can see exactly what the plugin is doing and why it is deciding that the patterns don't match?
By the way, it would be good to add to this feature's help text against what the regular expression is evaluated.
environment
```
Jenkins version: 1.642.1
Subversion plugin version: 1.54
Operating system: Red Hat Linux
Java version: 1.8.0_72
System Properties:
awt.toolkit sun.awt.X11.XToolkit
com.sun.akuma.Daemon daemonized
executable-war /usr/lib/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
guice.disable.misplaced.annotation.check true
hudson.diyChunking true
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/lib/jenkins/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/java/jdk1.8.0_72/jre/lib/endorsed
java.ext.dirs /usr/java/jdk1.8.0_72/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/java/jdk1.8.0_72/jre
java.io.tmpdir /tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.8.0_72-b15
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_72
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.72-b15
JENKINS_HOME /var/lib/jenkins
jna.loaded true
jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib:/usr/lib/vmware-tools/lib64/libvmGuestLibJava.so:/usr/lib/vmware-tools/lib32/libvmGuestLibJava.so:/usr/lib/vmware-tools/lib64/libvmGuestLib.so:/usr/lib/vmware-tools/lib32/libvmGuestLib.so:/usr/lib64/qt-3.3/lib:/usr/lib64/mysql:/usr/lib/vmware-tools/lib64/libDeployPkg.so:/usr/lib/vmware-tools/lib32/libDeployPkg.so
jnidispatch.path /tmp/jna--1712433994/jna4536414247536192020.tmp
line.separator
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch amd64
os.name Linux
os.version 2.6.32-642.3.1.el6.x86_64
path.separator :
securerandom.source file:/dev/./urandom
sun.arch.data.model 64
sun.boot.class.path /usr/java/jdk1.8.0_72/jre/lib/resources.jar:/usr/java/jdk1.8.0_72/jre/lib/rt.jar:/usr/java/jdk1.8.0_72/jre/lib/sunrsasign.jar:/usr/java/jdk1.8.0_72/jre/lib/jsse.jar:/usr/java/jdk1.8.0_72/jre/lib/jce.jar:/usr/java/jdk1.8.0_72/jre/lib/charsets.jar:/usr/java/jdk1.8.0_72/jre/lib/jfr.jar:/usr/java/jdk1.8.0_72/jre/classes
sun.boot.library.path /usr/java/jdk1.8.0_72/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8080 --ajp13Port=8009 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.country US
user.dir /
user.home /var/lib/jenkins
user.language en
user.name jenkins
user.timezone Europe/Amsterdam
Environment Variables
_ /etc/alternatives/java
CONSOLETYPE vt
HOME /var/lib/jenkins
LANG en_US.UTF-8
LANGSH_SOURCED 1
LOGNAME jenkins
NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat
PATH /sbin:/usr/sbin:/bin:/usr/bin
previous N
PREVLEVEL N
PWD /
RUNLEVEL 3
SHELL /bin/bash
SHLVL 3
TERM linux
UPSTART_EVENTS runlevel
UPSTART_INSTANCE
UPSTART_JOB rc
USER jenkins
XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt
Plugins
active-directory 1.47 true false
ant 1.2 true false
antisamy-markup-formatter 1.1 true false
credentials 1.18 true false
credentials-binding 1.8 true false
crowd2 1.8 true false
cvs 2.11 true false
external-monitor-job 1.4 true false
javadoc 1.1 true false
junit 1.2-beta-4 true false
ldap 1.11 true false
locale 1.2 true false
mailer 1.11 true false
matrix-auth 1.1 true false
matrix-project 1.4.1 true false
maven-plugin 2.7.1 true false
pam-auth 1.1 true false
plain-credentials 1.2 true false
script-security 1.13 true false
ssh-credentials 1.10 true false
ssh-slaves 1.9 true false
structs 1.2 true false
subversion 1.54 true false
translation 1.10 true false
windows-slaves 1.0 true false
workflow-step-api 2.2 true false
```
Contributor guide
Assessment
This issue has not been assessed yet.