Concourse 无法在大厅中触发作业
我不熟悉Congourse,在centos7.6中设置了环境,如下所示Concourse 无法在大厅中触发作业,concourse,Concourse,我不熟悉Congourse,在centos7.6中设置了环境,如下所示 $ wget https://concourse-ci.org/docker-compose.yml $ docker-compose up -d Then login by `fly --target example login --team-name main --concourse-url http://192.168.77.140:8080/ -u test -p test` [root@centostest ~
$ wget https://concourse-ci.org/docker-compose.yml
$ docker-compose up -d
Then login by `fly --target example login --team-name main --concourse-url http://192.168.77.140:8080/ -u test -p test`
[root@centostest ~]# fly -t example tj -j pipeline-01/hello-world-job --watch
started pipeline-01/hello-world-job #3
Cloning into '/tmp/build/get'...
Fetching HEAD
292c84b change task name
initializing
running echo hello world
hello world
succeeded
我可以看到下面
[root@centostest ~]# fly targets
name url team expiry
example http://192.168.77.140:8080 main Sun, 16 Jun 2019 02:23:48 UTC
我在下面使用了yaml.xml,命名为2.yaml
---
resources:
- name: my-git-repo
type: git
source:
uri: https://github.com/ruanbekker/concourse-test
branch: basic-helloworld
jobs:
- name: hello-world-job
public: true
plan:
- get: my-git-repo
- task: task_print-hello-world
file: my-git-repo/ci/task-hello-world.yml
然后我一步一步地运行下面的命令
fly -t example sp -c 2.yaml -p pipeline-01
fly -t example up -p pipeline-01
fly -t example tj -j pipeline-01/hello-world-job --watch
但我坚持住了,没有像下面这样有用的回答
$ wget https://concourse-ci.org/docker-compose.yml
$ docker-compose up -d
Then login by `fly --target example login --team-name main --concourse-url http://192.168.77.140:8080/ -u test -p test`
[root@centostest ~]# fly -t example tj -j pipeline-01/hello-world-job --watch
started pipeline-01/hello-world-job #3
Cloning into '/tmp/build/get'...
Fetching HEAD
292c84b change task name
initializing
running echo hello world
hello world
succeeded
理论上,它应该打印如下内容
$ wget https://concourse-ci.org/docker-compose.yml
$ docker-compose up -d
Then login by `fly --target example login --team-name main --concourse-url http://192.168.77.140:8080/ -u test -p test`
[root@centostest ~]# fly -t example tj -j pipeline-01/hello-world-job --watch
started pipeline-01/hello-world-job #3
Cloning into '/tmp/build/get'...
Fetching HEAD
292c84b change task name
initializing
running echo hello world
hello world
succeeded
我哪里做错了?谢谢。欢迎来到大堂
从Concourse开始时可能会混淆的一件事是,了解Concourse何时检测到管道已更改,以及管道是一个文件还是多个文件时会发生什么情况
您的管道(与大多数实际管道一样)是“嵌套的”:主管道文件2.yaml
指的是名为my git repo/ci/task hello world.yml
Concourse与其他CI系统的区别在于:
2.yaml
)可以存放在任何地方,也可以存放在不同的存储库中飞行设置管道
,也可以使用自动方式,如Concourse管道资源- 更改主管道文件、提交和推送,并期望Concourse接收更改。缺失:您必须执行
飞行设置管道
- 一旦执行
成为第二天性,您可能会遇到相反的错误:更改主管道文件和嵌套任务文件,而不是推送,执行set pipeline。在这种情况下,Concourse只会对主管道文件进行更改,而不会对任务文件进行更改。缺少:提交和推送fly set pipeline