Example: stage('Build_Nightly') { devices = ['device1', 'device2', 'device3'] devices.each { device -> def buildResults = build job: 'Build_Daily', wait: true, propagate: false, parameters:[string(name: 'Device', defaultValue: device, description: '', trim: true)] println "The ...
name : 'DEPLOY_JOB_NAME') booleanParam ( defaultValue: true, description: 'If the deployment is done, should THIS job wait for it to complete and include its success or failure as the build result (true), or should it schedule the job and exit quickly to free up the executor (fal...
//If nits fails, don't propagate the failure to the job's result. } stage('install') { shscript('nightly-install',false, [ ['INSTALL_DEBUG','yes'] ]) } } }finally{ if(build_workspace==null) error('could not determine the workspace used to perform the build') ...
build ( job: 'job1', parameters: [ string(name: 'AGENT', value: 'master'), // 这里的 string 是指输入值的类型,可输入给大部分类型的 parameters ], // wait: true, // 是否等待下游 job 执行完毕,才继续执行当前 job // propagate: true, // 是否让下游 job 的构建结果影响当前 job 。需要...