Hello Jenkins Users,
Is anyone using DSL to generate the jobs that Gerrit Trigger ?
Basically we want to get file path restriction on the trigger.
Below snippet
triggers {
gerrit {
events {
patchsetCreated()
commentAdded()
project('project', 'reg_exp:.*')
}
}
}
generates the xml with branches, but cannot find any documentation on how
to setup on the file reg_exp.
generated xml:
<gerritProjects>
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
<compareType>PLAIN</compareType>
<pattern>project</pattern>
<branches>
<com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
<compareType>REG_EXP</compareType>
<pattern>.*</pattern>
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.Branch>
</branches>
</com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject>
</gerritProjects>
Any help much appreciated.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/5110a30f-8080-4339-a62a-918dafc70c46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.