鉴于以下Concourse管道,我试图从源代码构建项目并将jar工件存储在其他git repo中。
export class ItemsService {
private items = new BehaviorSubject(null);
items$ = this.items.asObservable();
foundItems = null;
constructor(private httpClient: HttpClient){
this.items.next(httpClient.post<any>(myUrl,myQuery).subscribe(this.items));
}
addItems(items){
this.foundItems = items;
}
}
并构建脚本
resources:
- name: project-repository
type: git
webhook_token: ((project.webtoken))
source:
uri: ((project-url))
branch: feature/ci
private_key: ((gitcfg.sshPrivateKey))
- name: version-repository
type: git
source:
uri: ((version-url))
branch: feature/ci
private_key: ((gitcfg.sshPrivateKey))
jobs:
- name: build
public: false
serial: true
plan:
- get: project-repository
trigger: true
- get: version-repository
trigger: true
- task: build
config:
platform: linux
image_resource:
type: docker-image
source:
repository: <some-docker-image>
tag: 1.0.0
inputs:
- name: project-repository
- name: version-repository
outputs:
- name: updated-version-repository
run:
path: project-repository/ci/build.sh
params: *pipeParams
- put: version-repository
params:
repository: updated-version-repository
但是我的管道无法通过{p>执行 #!/bin/bash
git clone version-repository update-version-repository
cd project-repository
./gradlew clean build -x test
cp -R $ build/libs/*jar ~/update-version-repository/jars
cd ~/update-version-repository
git config --global user.email "me@example.com"
git config --global user.name "me"
git add .
git commit -m "Add jar"
任务
put
任何人都可以向我提示发生了什么吗?我的印象是,一项任务的输出被隐式安装为另一项任务的输入(在本例中为我的任务)
我正在按照本教程的指导进行参考 https://concoursetutorial.com/basics/publishing-outputs/