[tools] Updating jenkins jobs through JJB can lead to unexpected results

Bug #1496511 reported by Igor Belikov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Won't Fix
Medium
Fuel CI

Bug Description

Due to the way Jenkins handles updating job configuration from xml files (see https://issues.jenkins-ci.org/browse/JENKINS-21017) changes made to job yaml configuration may not be applied on Jenkins master. E.g. when 'triggers' section is completely removed from yaml configuration, it still will be in place on Jenkins master.

There is a number of ways to handle this till the issue is fixed in upstream Jenkins builds:

1. This behaviour needs to be documented in README.rst file of jenkins-jobs repo. Something like: "You need to manually apply changes to the existing job through Jenkins web-UI after completely removing one of the sections from yaml file."
2. This can be handled on jenkins-jobs level, through empty stubs for sections, using macros or some other way.
3. Upstream JJB could be patched to generate empty xml stubs for sections not mentioned in yaml config.

Changed in fuel:
status: New → Confirmed
Dmitry Pyzhov (dpyzhov)
tags: added: area-ci
Revision history for this message
Ivan (iremizov) wrote :

Probably we could avoid such issues if we update our guidelines with such info...

Changed in fuel:
milestone: 8.0 → 10.0
Ivan (iremizov)
summary: - [fuel-ci] Updating jenkins jobs through JJB can lead to unexpected
- results
+ [tools] Updating jenkins jobs through JJB can lead to unexpected results
Roman Vyalov (r0mikiam)
Changed in fuel:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.