1

How I can trigger Jenkins to build project by special string in comment of commit?

For example, I want to publish project to Beta env. only when I put "Beta build" string in comment of svn commit.

RazorRunner
  • 131
  • 14
  • You question asks a specific part of an envisioned implementation for the problem you are having. Perhaps if you state the full problem you are trying to solve, you might find out another plugin (e.g. Promoted Builds Plugin) will solve it better. (Promoted Builds allows you to "promote" a specific build. I use it so publish executables that are ready to be consumed by other users.) – jwernerny Nov 25 '13 at 17:27
  • 1
    In the advanced part of the subversion configuration in a job you have "Excluded Commit Messages". Try to match the message not containing your string `^((?!string).)*$` -- see http://stackoverflow.com/questions/406230/regular-expression-to-match-string-not-containing-a-word – Peter Schuetze Nov 25 '13 at 18:25
  • @PeterSchuetze, thank you. It is what I looking for. – RazorRunner Nov 26 '13 at 13:23

1 Answers1

2

In the advanced part of the subversion configuration in a job you have "Excluded Commit Messages". Try to match the message not containing your string ^((?!string).)*$ -- see Regular expression to match a line that doesn't contain a word?

Community
  • 1
  • 1
Peter Schuetze
  • 15,675
  • 3
  • 39
  • 57