def openshift_deploy_canceller(registry, xml_parent, data):
 osb = XML.SubElement(xml_parent, 'com.openshift.jenkins.plugins.pipeline.OpenShiftDeployCanceller')
 mapping = [('api-url', 'apiURL', 'https://openshift.default.svc.cluster.local'), ('dep-cfg', 'depCfg', 'frontend'), ('namespace', 'namespace', 'test'), ('auth-token', 'authToken', ''), ('verbose', 'verbose', False)]
 helpers.convert_mapping_to_xml(osb, data, mapping, fail_required=True)

def openshift_deploy_canceller ( registry , xml_parent , data ) : osb = XML . SubElement ( xml_parent , 'com.openshift.jenkins.plugins.pipeline.OpenShiftDeployCanceller' ) mapping = [ ( 'api-url' , 'apiURL' , 'https://openshift.default.svc.cluster.local' ) , ( 'dep-cfg' , 'depCfg' , 'frontend' ) , ( 'namespace' , 'namespace' , 'test' ) , ( 'auth-token' , 'authToken' , '' ) , ( 'verbose' , 'verbose' , False ) ] helpers . convert_mapping_to_xml ( osb , data , mapping , fail_required = True )
yaml: openshift-deploy-canceller this action is intended to provide cleanup for any openshift deployments left running when the job completes; this step will allow you to perform the equivalent of a oc deploy --cancel for the provided deployment config .