From ca5d12627f31a547f2b4ef25812b8a2d15ba20e8 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Mon, 6 Nov 2017 11:58:01 +0100 Subject: [PATCH] Fix duplicated actions field in XML for folders Change-Id: I9638dda0c31dfd70ffe8fcfc9eecc260bb326f61 --- jenkins_jobs/modules/project_folder.py | 1 - tests/yamlparser/fixtures/project_folder_template001.xml | 1 - tests/yamlparser/fixtures/project_folder_template002.xml | 1 - 3 files changed, 3 deletions(-) diff --git a/jenkins_jobs/modules/project_folder.py b/jenkins_jobs/modules/project_folder.py index ac6e6bddd..1d95d4f33 100644 --- a/jenkins_jobs/modules/project_folder.py +++ b/jenkins_jobs/modules/project_folder.py @@ -44,7 +44,6 @@ class Folder(jenkins_jobs.modules.base.Base): def root_xml(self, data): xml_parent = XML.Element('com.cloudbees.hudson.plugins.folder.Folder', plugin="cloudbees-folder") - XML.SubElement(xml_parent, 'actions') attributes = {"class": "com.cloudbees.hudson.plugins.folder." "icons.StockFolderIcon"} XML.SubElement(xml_parent, 'icon', attrib=attributes) diff --git a/tests/yamlparser/fixtures/project_folder_template001.xml b/tests/yamlparser/fixtures/project_folder_template001.xml index 38cd68d01..9e25c9996 100644 --- a/tests/yamlparser/fixtures/project_folder_template001.xml +++ b/tests/yamlparser/fixtures/project_folder_template001.xml @@ -1,6 +1,5 @@ - diff --git a/tests/yamlparser/fixtures/project_folder_template002.xml b/tests/yamlparser/fixtures/project_folder_template002.xml index 38cd68d01..9e25c9996 100644 --- a/tests/yamlparser/fixtures/project_folder_template002.xml +++ b/tests/yamlparser/fixtures/project_folder_template002.xml @@ -1,6 +1,5 @@ -