We use Jenkins with Gerrit to trigger certain jobs on Jenkins. We use Trigger on
Comment Added Contains Regular Expression
to run the job. The job executes a shell script using maven mvnw
command with some command line parameters for maven execution.
One of these jobs has regex like .*(\+WEB_TEST|\+WT).*
. So whenever we want web tests to run, we put comment like +WT
on the gerrit patch-set. Now we want to pass an optional parameter to maven through this comment.
Is it possible altogether?