...
Code Block | ||
---|---|---|
| ||
def call( def PUBLISHCOMPILATIONRESULTS, def UPGRADEORACLEVARIANT = false, def UPGRADEDORACLEVERSION = "11" ) { def variantParams = "{CCMT parameters required when using Oracle}" try { mettleci datastage ccmt ${variantParams} #// Run CCMT to Upgrade Stages if (PUBLISHCOMPILATIONRESULTS) { // Publish CCMT output as JUnit Test Results when successful junit testResults 'log/**/mettleci_compilation.xml' } } catch(e) { if (PUBLISHCOMPILATIONRESULTS) { #// Publish CCMT output as JUnit Test Results in the event of an error #// See Jenkins JUnit plugin documentation. junit testResults 'log/ccmt/**/mettleci_compilation.xml' allowEmptyResults: true, #// Don't fail the build on missing test result files or empty test results skipPublishingChecks: true #// Don't automatically publish test results to Git } throw e #// Propagate error for downstream error handling } } |
...