我正在尝试创建一个使用Concourse的管道。管道应:
target/*war)推送到云创建公司。步骤1和步骤2已成功执行,但在尝试不同配置数小时后,我无法访问生成的工件并将其推送到CF中。
在最后一步中,我得到了以下错误:error invalid path: found 0 files instead of 1 at path: /tmp/build/put/mvn-package/target/udm-0.1.war
文件pipeline.yml
resources:
- name: branch-dev
type: git
source:
uri: {{git-url}}
branch: {{git-branch}}
private_key: {{private-repo-key}}
- name: PCF-Dev
type: cf
source:
api: {{pcf-api}}
username: {{pcf-username}}
password: {{pcf-password}}
organization: {{pcf-organization}}
space: {{pcf-space}}
skip_cert_check: false
jobs:
- name: udm
serial: true
plan:
- get: branch-dev
trigger: true
- task: mvn-package
privileged: true
file: branch-dev/ci/package.yml
- put: PCF-Dev
params:
manifest: branch-dev/ci/manifest.yml
path: mvn-package-output/target/udm-0.1.war文件manifest.yml
applications:
- name: udm文件package.yml
platform: linux
image_resource:
type: docker-image
source:
repository: maven
tag: latest
inputs:
- name: branch-dev
outputs:
- name: mvn-package-output
run:
path: "mvn"
args: ["-f", "branch-dev/udm/pom.xml", "package"]我想我漏掉了什么。有人能帮我看看并指出正确的方向吗?
发布于 2017-03-21 23:14:22
您需要在构建/部署作业之间放置/获取资源(构建工件)(并将其定义为资源)。
关键项目有非常好的生产中心使用示例,如https://github.com/azwickey-pivotal/volume-demo/blob/master/ci/pipeline.yml。
https://stackoverflow.com/questions/42917088
复制相似问题