nemccarthy / stash-pullrequest-builder-plugin

A Jenkins plugin for Building Stash Pull Requests
https://wiki.jenkins-ci.org/display/JENKINS/Stash+pullrequest+builder+plugin
Other
64 stars 130 forks source link

Build is triggert every time when cron is executed when project name contains [] #93

Closed mzielinski closed 8 years ago

mzielinski commented 8 years ago

In our Jenkins most of the jobs have name like "PROJECT_NAME BUILD [develop]", because we are using pipeline plugin.

Code is not prepared for that. It is not very common problem, because generally you are not allow to use special chars like [ or ] in display name, but it is can occurs when you are using pipeline plugin.

As a result plugin is triggered every time when cron is executed, because it has a problem to find previous build comment.

Now, I have new BuildFinished comment every 5 minutes (cron configuration) in my stash pull request. I will prepare fix for that.

mzielinski commented 8 years ago

I think, that this is my mistake. I see now, that there is Pattern.quote(), so issue should not occurs. So, something else is a cause of strange behaviour in our environment.