2017-01-31 6 views

答えて

1

git-resourceを使用してください。

あなたがやりたいしようとしているものの基本的な手順は、

  • にある容器にレポから引き出します。

あなたのパイプライン構成は次のようになります異なるの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 
    
  • 関連する問題