Pipeline build step with parameters

Posted LightSong@计海拾贝

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Pipeline build step with parameters相关的知识,希望对你有一定的参考价值。

build step

https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#build-build-a-job

 

一个任务的执行触发,另外一个任务的执行,以代码的形式。

 

build: Build a job

Triggers 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")]

 

以上是关于Pipeline build step with parameters的主要内容,如果未能解决你的问题,请参考以下文章

詹金斯:步骤和步骤之间的区别

jenkins 构建nodejs-pipeline流水风格的任务

Tensorflow Windows Build with GPU Support

pipeline step description

21-Jenkins-Pipeline-Pipeline Utility Steps插件之findFiles方法

26-Jenkins-Pipeline-Pipeline Basic Steps插件之isUnixretrysleep方法