It turns out, the Jenkins pipeline for this is just like deploy pipeline.
For this example, my custom UCDeploy application is called "my-custom-app", the environment is "staging", the process is "glFetch". That process takes two arguments, appShort and assetId. My UCD site is named: "my site". Here is a partial pipeline:
pipeline {
parameters {
string(name: 'appShort')
string(name: 'assetId')
}
environment {
appShort = "${params.appShort}"
assetId = "${params.assetId}"
}
stages {
stage ('Run UCD') {
steps {
step([
$class: 'UCDeployPublisher',
siteName: 'my site',
deploy: [
$class: 'com.urbancode.jenkins.plugins.ucdeploy.DeployHelper$DeployBlock',
deployApp: 'my-custom-app',
deployEnv: 'staging',
deployProc: 'gitFetch',
deployReqProps: "appShort=${appShort}\nassetId=${assetId}"
]
])
}
}
}
}
------------------------------
Kevin Buchs
------------------------------