I'm also facing this issue with Jenkins 1.480.2 and scm-sync-config 0.0.7. Using SVN or Git doesn't change anything.
The bug seems relating to the use of the method DirectoryScanner.match() in PatternsEntityMatcher.matches().
The inclusion of DirectoryScanner.match() in DirectoryScanner is misleading because it doesn't behave as the class may suggest. For this method '*' means zero or more characters in the full path and not by segment.
Following Junit test will fail whatever version of Ant:

import static org.junit.Assert.*;

import org.apache.tools.ant.DirectoryScanner;
import org.junit.Test;

public class DirectoryScannerTest {

@Test
public void test() { assertFalse(DirectoryScanner.match("jobs/*/config.xml", "jobs/parent/modules/module/config.xml")); }

}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to