I have a jenkins pipeline and I want to have a post-build action which will trigger another job.
That job is using parameters from property files. I wonder how I write this in the pipeline definition
For example, below is trigger the job with a String parameter named 'systemname', thanks
post {
always {
echo 'post build action'
build job: 'metrics-report', parameters: [[$class: 'StringParameterValue', name: 'systemname', value: systemname]]
}
}