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]]

          }

    }

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f5ea5717-9eb3-4ac4-854f-abd427e41558%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to