/
Jenkins Shared Library - mci_deploy

Jenkins Shared Library - mci_deploy

This Shared Library hosts a Custom Step which is an example implementation of the Deploy step of a MettleCI Pipeline.

Here’s the pseudocode for the Shared Library:

def call( def PUBLISHCOMPILATIONRESULTS, def UPGRADE_DSPARAMS ) { try { mettleci datastage create-project // Create DataStage Project if (UPGRADE_DSPARAMS == true) { mettleci remote download // Fetch Template DSParams mkdir // Create artifacts dir mettleci dsparams merge // Merge DSParams } mettleci properties config // Substitute parameters in DataStage config mettleci remote upload // Transfer DataStage config and filesystem assets mettleci remote execute // Deploy DataStage config and file system assets mettleci datastage deploy // Deploy DataStage project if (PUBLISHCOMPILATIONRESULTS) { // Publish JUnit test results junit testResults 'log/**/mettleci_compilation.xml' } } catch(e) { if (PUBLISHCOMPILATIONRESULTS) { // Publish JUnit test results junit testResults 'log/**/mettleci_compilation.xml' } throw e // Propagate error to donwstream error handling }

Note that this Custom Step makes used of Jenkins' JUnit plugin.

 

Related content

Jenkins Shared Library - mci_ccmt
Jenkins Shared Library - mci_ccmt
More like this
Jenkins Shared Library - mci_unittest
Jenkins Shared Library - mci_unittest
More like this
Reusable Pipeline Templates in Jenkins
Reusable Pipeline Templates in Jenkins
More like this
Introducing Jenkins Pipelines
Introducing Jenkins Pipelines
More like this
Install and Configure a Jenkins Agent
Install and Configure a Jenkins Agent
More like this
Jenkins Environment Variables
Jenkins Environment Variables
More like this

© 2015-2024 Data Migrators Pty Ltd.