gvalkov / jenkins-autojobs

Automatically create Jenkins jobs from template jobs and branches in a SCM repository
http://jenkins-autojobs.rtfd.org
Other
49 stars 39 forks source link

Whitelist refs #9

Closed sja closed 10 years ago

sja commented 10 years ago

I want to create jobs for all of refs/heads/feature_*. How can I achieve it? I tried a negatvie regex in the ignore list, but that did not work: '^refs/heads/(^feature_).*$'

gvalkov commented 10 years ago

Adding the regex to refs should be enough, I think:

refs:
  - 'refs/heads/feature_(.*)'

Perhaps you've already seen http://jenkins-autojobs.readthedocs.org/en/latest/git.html#config-file ?

sja commented 10 years ago

Oh, ok. I saw the config file (which was my template to create one), but I thought that every ref, which isn't mapped by the refs: ... will be used with the defaults. I'll try your approach in some minutes... meanwhile writing another issue :-)

sja commented 10 years ago

Works, thank you!