jenkins-job-builder doesn't filter when using template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Core Infrastructure |
In Progress
|
Undecided
|
Unassigned |
Bug Description
I have a folder 'input' with two files in - emily.yaml and foo.yaml. I can generate a jenkins config for just the emily file without difficulty:
jenkins-jobs --conf ~/devtools/
It correctly skips foo. If I add template.yaml and change foo.yaml and emily.yaml to both use that template, and run the same command, it doesn't skip foo any more. I think it should. There could be an error in foo.yaml that I don't want to deal with right now. I do however want to get a new xml for emily.
Output when it works correctly:
$ jenkins-jobs --conf ~/devtools/
DEBUG:root:Reading config from ~/devtools/
DEBUG:root:Config: <ConfigParser.
INFO:root:Updating jobs in input (['emily'])
DEBUG:jenkins_
DEBUG:jenkins_
DEBUG:jenkins_
DEBUG:jenkins_
Output when it works incorrectly:
$ jenkins-jobs --conf ~/devtools/
DEBUG:root:Reading config from ~/devtools/
DEBUG:root:Config: <ConfigParser.
INFO:root:Updating jobs in input (['emily'])
DEBUG:jenkins_
DEBUG:jenkins_
DEBUG:jenkins_
DEBUG:jenkins_
DEBUG:jenkins_
It should never have tried to do XMLifying project 'foo'
Changed in openstack-ci: | |
assignee: | nobody → Khai Do (zaro0508) |
Changed in openstack-ci: | |
assignee: | Khai Do (zaro0508) → nobody |
I just submitted a pull request with a fix
https:/ /github. com/openstack- infra/jenkins- job-builder/ pull/10