jenkins-job-builder/tests/builders/fixtures/openshift-dep-verify002.xml
Ari LiVigni 101f74645d Made a common helper function - convert_mapping_to_xml
This will allow other modules to convert a mapping set to xml easily
with defaults so other methods don't have to create their own.

Includes behaviour to selectively omit or include empty tags.

Behaviour for default value:
  None - omit this tag if users didn't put anything
  "" - create an empty element if users didn't put anything

This is applied to the existing openshift plugin functions in
refactoring as Jenkins actually retains an empty XML tag when the
optional 'auth-token' setting is missing from the input job definition.
Which results in modifying the default test's output for the openshift
plugin.

Change-Id: I935a70ad191bc0f3f3dbd571b2b1cf7468106697
2015-10-09 17:47:01 +01:00

12 lines
426 B
XML

<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<com.openshift.openshiftjenkinsbuildutils.OpenShiftDeploymentVerifier>
<apiURL>https://openshift.default.svc.cluster.local</apiURL>
<depCfg>frontend</depCfg>
<namespace>test</namespace>
<replicaCount>0</replicaCount>
<authToken/>
</com.openshift.openshiftjenkinsbuildutils.OpenShiftDeploymentVerifier>
</builders>
</project>