Update artifactory_repository to make use of convert_mapping_to_xml
Change-Id: I46b77626a9d1fc619314871f084204188a62cd43
This commit is contained in:
parent
c0ea111675
commit
dffd98a03a
@ -393,20 +393,22 @@ def artifactory_common_details(details, data):
|
|||||||
|
|
||||||
def artifactory_repository(xml_parent, data, target):
|
def artifactory_repository(xml_parent, data, target):
|
||||||
if 'release' in target:
|
if 'release' in target:
|
||||||
XML.SubElement(xml_parent, 'keyFromText').text = data.get(
|
release_mapping = [
|
||||||
'deploy-release-repo-key', '')
|
('deploy-release-repo-key', 'keyFromText', ''),
|
||||||
XML.SubElement(xml_parent, 'keyFromSelect').text = data.get(
|
('deploy-release-repo-key', 'keyFromSelect', ''),
|
||||||
'deploy-release-repo-key', '')
|
('deploy-dynamic-mode', 'dynamicMode', False),
|
||||||
XML.SubElement(xml_parent, 'dynamicMode').text = str(
|
]
|
||||||
data.get('deploy-dynamic-mode', False)).lower()
|
convert_mapping_to_xml(
|
||||||
|
xml_parent, data, release_mapping, fail_required=True)
|
||||||
|
|
||||||
if 'snapshot' in target:
|
if 'snapshot' in target:
|
||||||
XML.SubElement(xml_parent, 'keyFromText').text = data.get(
|
snapshot_mapping = [
|
||||||
'deploy-snapshot-repo-key', '')
|
('deploy-snapshot-repo-key', 'keyFromText', ''),
|
||||||
XML.SubElement(xml_parent, 'keyFromSelect').text = data.get(
|
('deploy-snapshot-repo-key', 'keyFromSelect', ''),
|
||||||
'deploy-snapshot-repo-key', '')
|
('deploy-dynamic-mode', 'dynamicMode', False),
|
||||||
XML.SubElement(xml_parent, 'dynamicMode').text = str(
|
]
|
||||||
data.get('deploy-dynamic-mode', False)).lower()
|
convert_mapping_to_xml(
|
||||||
|
xml_parent, data, snapshot_mapping, fail_required=True)
|
||||||
|
|
||||||
|
|
||||||
def append_git_revision_config(parent, config_def):
|
def append_git_revision_config(parent, config_def):
|
||||||
|
Loading…
Reference in New Issue
Block a user