concourse 풀 리소스를 찾으려고합니다. concourse/pool-resource git hub repo에서 온라인 설명서 (https://github.com/concourse/pool-resource/)를 따라했습니다.Concourse 풀 리소스 잠금 파이프 라인
내 confiugration은 다음과 같습니다 : 나는 작업 1 또는 작업 2 중 하나의 잠금 장치에받을 수 있나요 때
resources:
- name: locks
type: pool
source:
uri: https://<git-path>/<repo>.git
branch: locks
username: {{github-username}}
password: {{github-password}}
pool: locks
jobs:
- name: job1
serial: true
plan:
- aggregate:
- get: locks
- put: locks
params: {claim: pipeline}
- name: job2
serial: true
plan:
- aggregate:
- get: locks
- put: locks
params: {claim: pipeline}
- name: release
serial: true
plan:
- aggregate:
- get: locks
- put: locks
params: {release: locks}
, 나는 작업에서 볼 다음 잠금의 주장은 '아무튼 시간이 오래 실행 t은 나에게 아무것도 보여 내가 잘못하고있는 무슨 확실하지 않다
sh: locks/unclaimed/.gitkeep: unknown operand
을, 나는 심지어 광장 노동자에 납치은/var/로그를 확인하는 것은, 내가 보는 모든 풀 자원 요청 괜찮 시도 *. 파일.
내가 뭘 잘못하고 있니?
폴더 구조는 문서에서 언급 한 것과 동일합니다. 단, 유일한 차이점은 새 저장소를 만드는 대신 주 저장소에서 잠금을위한 별도의 분기를 만들었습니다.
폴더 구조
.
├── README.md
└── locks
├── claimed
├── .gitkeep
└── unclaimed
├── .gitkeep
무엇이 잘못 될 수 있을까?
나는 심지어 내가 그것을 주장 할 때마다 나는 자물쇠를 채우지 않을 것이다.
resources:
- name: locks
type: pool
source:
uri: https://<git-path>/<repo>.git
branch: locks
username: {{github-username}}
password: {{github-password}}
pool: locks
jobs:
- name: job1
serial: true
plan:
- put: locks
params: {claim: pipeline}
- name: job2
serial: true
plan:
- put: locks
params: {claim: pipeline}
- name: release
serial: true
plan:
- aggregate:
- get: locks
- put: locks
params: {release: locks}
나는 job1을 트리거하면 잠금을 가하는 것을보고 아무 것도하지 않습니다. 작업자를 납치하면 tmp에 폴더가 생성 된 것을 볼 수 있습니다. 모든 것이 예상대로입니다. 지금 무엇이 잘못되었는지 확신하지 못합니다.