-
Bug
-
Resolution: Fixed
-
Major
-
None
-
CVS plug-in version 2.5
Jenkins 1.474
When a string build parameter (eg. "tagname") is used in the tag name field of the CVS job configuration (eg. "${tagname}") and a build
is executed, it fails with the following error:
FATAL: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^ java.util.regex.PatternSyntaxException: Illegal repetition near index 0 ${TAGNAME}: (([0-9]+\.)+)0\.([0-9]+) ^ at java.util.regex.Pattern.error(Pattern.java:1713) at java.util.regex.Pattern.closure(Pattern.java:2775) at java.util.regex.Pattern.sequence(Pattern.java:1889) at java.util.regex.Pattern.expr(Pattern.java:1752) at java.util.regex.Pattern.compile(Pattern.java:1460) at java.util.regex.Pattern.<init>(Pattern.java:1133) at java.util.regex.Pattern.compile(Pattern.java:847) at hudson.scm.CvsChangeLogHelper.getCurrentFileVersion(CvsChangeLogHelper.java:266) at hudson.scm.CvsChangeLogHelper.mapCvsLog(CvsChangeLogHelper.java:151) at hudson.scm.CVSSCM.calculateChangeLog(CVSSCM.java:419) at hudson.scm.CVSSCM.checkout(CVSSCM.java:831) at hudson.model.AbstractProject.checkout(AbstractProject.java:1248) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1484) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)
When the same job is immediately started again with the same build parameter it succeeds.
This happens across several different CVS repositories.
This issue was also reported on the mailing list here:
https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/LJ1UZqV7JC4