Continuous integration 如何从大厅管道提交?
从管道提交的最佳方式是什么。作业从不同的repo提取并进行一些更改+构建-然后将新文件推送到不同的repo。这可能吗 您应该使用 你要做的基本步骤是Continuous integration 如何从大厅管道提交?,continuous-integration,concourse,Continuous Integration,Concourse,从管道提交的最佳方式是什么。作业从不同的repo提取并进行一些更改+构建-然后将新文件推送到不同的repo。这可能吗 您应该使用 你要做的基本步骤是 从回购协议中取出,放入容器中 用代码做一些事情 将新代码移到另一个容器中 将新容器的内容推送到另一个git存储库 您的管道配置应该如下所示: jobs: - name: pull-code plan: - get: git-resource-pull - get: git-resource-push - task: do-som
- 从回购协议中取出,放入容器中李>
- 用代码做一些事情
- 将新代码移到另一个容器中
- 将新容器的内容推送到另一个git存储库
jobs:
- name: pull-code
plan:
- get: git-resource-pull
- get: git-resource-push
- task: do-something
inputs:
- name: git-resource-pull
run:
path: /bin/bash
args:
- -c
- |
pushd git-resource-pull
// do something
popd
// move the code from git-resource-pull to git-resource-push
- put: git-resource-push
params: {repository: git-resource-push}
resources:
- name: git-resource-pull
type: git
source:
uri: https://github.com/team/repository-1.git
branch: master
- name: git-resource-push
type: git
source:
uri: https://github.com/team/repository-2.git
branch: master