ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# GoCD Version: 19.8.0,本项目pipelines分三步, 第一、编译及推送镜像到仓库 第二、发布到pionex-dev 第三、如果pionex-dev没有问题,再推送到pionex-prod 1. 首先创建pipline group---pionex admin->pipelines->ADD NEW PIPELINE GROUP->pionex 2. 创建pipeline 在对应 pipline group->Create a new pipeline within this group,先简单建立一个,然后点击修改。 # **添加了计划的三个步骤** ![title](https://leanote.com/api/file/getImage?fileId=5da6cf87ab64412aac000e56)原图片 General-->Automatic pipeline scheduling,不勾选。如果未选中,此管道将仅安排响应手动/API/计时器触发器。 取消选中此框与制作第一阶段手动相同。 ![](https://img.kancloud.cn/bb/fd/bbfd4d3285a37a6cc2a9754c41c24aa4_1482x443.png) # **添加环境变量** ![title](https://leanote.com/api/file/getImage?fileId=5da6cffcab64412ca4000cfb)原图片 ![](https://img.kancloud.cn/e0/6d/e06da5f6ead4f823495171c9e7dc4317_1050x613.png) # **添加参数** ![title](https://leanote.com/api/file/getImage?fileId=5da6d01bab64412aac000e63)原图片 ![](https://img.kancloud.cn/a3/19/a319e316446646fa9ab1388a229e1cd8_1042x503.png) # **每个Stage修改** 修改名字, 选择Manual(上一阶段成功后,下阶段手动点击), 取消Fetch Materials, 选择Clean Working Directory,然后保存。 ![](https://img.kancloud.cn/0d/4c/0d4c021738dca88b97dbc2a83a8dfd31_946x495.png) # **每个Job** ![title](https://leanote.com/api/file/getImage?fileId=5da6de75ab64412ca4000d87)原图片 ![](https://img.kancloud.cn/e5/be/e5be3a597bf5e777289a4a9685621224_1824x550.png) 多个piplines之间如果用到依赖的话,**Managing dependencies** 引用https://docs.gocd.org/current/configuration/managing_dependencies.html # Creating a dependency Say we have two pipelines - upstream_pipeline and downstream_pipeline . We want downstream_pipeline to automatically trigger following the successful completion of the stage AutoStage1 in pipeline upstream_pipeline. Here’s how we’d achieve this: Navigate to the Admin section. On the Pipelines screen, locate the downstream_pipeline pipeline and Edit it. Click on the Materials tab. Add a new pipeline dependency material by clicking Add Material and then selecting Pipeline . You’ll be presented with an Add Material popup (see screenshot) Enter upstream_pipeline [AutoStage1] in the Pipeline [stage] field (it can also auto-complete) Now, when the stage “AutoStage1” of “upstream_pipeline” completes, the pipeline “downstream_pipeline” will start building. **Fetching artifacts from an upstream pipeline** 引用https://docs.gocd.org/current/configuration/managing_dependencies.html