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

原文地址:https://www.cnblogs.com/lightsong/p/8724889.html

时间: 2024-08-10 17:01:36

Pipeline build step with parameters的相关文章

Build step 'Execute Windows batch command' marked build as failure

坑爹的Jenkis,在执行windows命令编译.NET项目的时候命令执行成功了,但是却还是报了这样一个错: Build step 'Execute Windows batch command' marked build as failure 综合了几个stackoverflow上的答案,原因如下: jenkins执行windows命令,若退出代码不为0 ,则jenkins会将构建标记为失败 我解决的方法:在bat脚本最后一行加上 exit 0 Build step 'Execute Windo

Jenkins Docker安装及Docker build step插件部署配置

Docker-build-step插件安装部署1.打开系统管理,插件管理,找到Docker build step插件,勾选选中,点击直接安装,安装完成后重启一下Jenkins容器:2.使用终端登录到B服务器,修改/usr/lib/systemd/system/docker.service 为: 将其中第11行的 ExecStart=/usr/bin/dockerd 替换为:ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix:///va

Build step ‘Execute shell‘ marked build as failure

shell 脚本远程调用执行如下:/usr/bin/ssh 10.1.2.3 '/bin/bash /root/ReServer.sh'报错如下:Build step 'Execute shell' marked build as failure 本地执行是ok,怎么执行都报错,后来折腾了老半天,一步一步的打输出,发现:原来是脚本在判断进程是否存在的同时,这个结束进程刚好有同样的匹配串!ps -aux | grep "idiot" | grep -v grep | grep -v '$

gtk+-3.21.4 static build step in windows XP

In recent days the weather is very hot Unable to sleep properly Under the state of daze research gtk3 static compiler. ------------------------------------------------------------------------------------------------------- build static libs ---------

glib-2.49.4 static build step in windows XP

export LIBFFI_CFLAGS=" -I/usr/local/lib/libffi-3.2.1/include " export LIBFFI_LIBS=" -lffi " export ZLIB_CFLAGS=-I/usr/local/include export ZLIB_LIBS=-lz export CFLAGS=" -I/usr/local/include -O2 -Wall -march=i686 -mms-bitfields -mt

[持续交付实践] pipelne:pipeline 使用之项目样例

项目说明 本文将以一个微服务项目的具体pipeline样例进行脚本编写说明.一条完整的pipeline交付流水线通常会包括代码获取.单元测试.静态检查.打包部署.接口层测试.UI层测试.性能专项测试(可能还有安全.APP等专项).人工验收等研发测试环节,还会包括灰度发布.正式发布等发布环节. 补充说明:1.此项目的部署还是使用传统虚拟机服务器的方式,暂未采用docker容器,docker容器与pipeline的结合后面会有其他专题进行说明.2.灰度发布.正式发布等发布环节,由于涉及到线上发布系统

TeamCity : 配置 Build 过程

Build 过程往往是比较复杂的,因此 TeamCtiy 通过 build 步骤的方式让您可以实现不同的应用场景.您可以在每个 build 步骤中只做一件事情,然后把一系列的 build 步骤组织起来按顺序执行来完成 build 过程.先看一下 build 步骤配置的概览: 每一个 Build 步骤都会对应一个 build runner 在背后完成真正的工作.我们要做的就是构思好 build 的过程,然后通过一系列的 build 步骤去实现它.在 build 的过程中,这些 build 步骤会被

jenkins的Pipeline代码流水线管理

1.新建一个pipline任务 2.自写一个简单的pipline脚本 a.Pipeline的脚本语法在Pipeline Syntax中,片段生成器,示例步骤中选择builf:Build a job b.将生成的语句中的value赋值 c.在这条线上部署了两个job--test-zrlog.java-serverDB node { build job: 'test-zrlog', parameters: [gitParameter(name: 'version_tag', value: 'v1.4

jenkins pipeline 复杂的发布流程

1.参数化构建界面 2.交付流水线界面 3.脚本详解 #!groovy pipeline { //在任何可用的代理上执行Pipeline agent any //参数化变量,目前只支持[booleanParam, choice, credentials, file, text, password, run, string]这几种参数类型,其他高级参数化类型还需等待社区支持. parameters { //git代码路径[参数值对外隐藏] string(name:'repoUrl', defaul