build step
https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job
一个任务的执行触发,另外一个任务的执行,以代码的形式。
build
: Build a jobTriggers a new build for a given job.
job
Name of a downstream job to build. May be another Pipeline job, but more commonly a freestyle or other project. Use a simple name if the job is in the same folder as this upstream Pipeline job; otherwise can use relative paths like../sister-folder/downstream
or absolute paths like/top-level-folder/nested-folder/downstream
.
- Type:
String
parameters
(optional)Array/List
Nested Choice of Objects
booleanParam
带参数build
http://cncc.bingj.com/cache.aspx?q=pipeline+build+step+parameters&d=4804322095007877&mkt=en-US&setlang=en-US&w=fn4nvhTzHFKIwO3r_iUrVDTe_qO5yxzP
uild job: 'jenkins-test-project-build', parameters: [string(name: 'param1', value:"some-value")]