Concourse pool-resource lock pipeline -


i trying concourse pool resource, have followed online documentation (https://github.com/concourse/pool-resource/) in concourse/pool-resource git hub repo.

my confiugration below:

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} 

when on locks in either job1 or job2, see in jobs , claim of lock runs long time, doesn't show me anything:

sh: locks/unclaimed/.gitkeep: unknown operand 

i not sure doing wrong, hijacked concourse worker , tried checking /var/logs, see fine in pool-resource-request.* file.

what doing wrong?

the folder structure mentioned in documentation, difference is, instead of creating new repository, created separate branch locks in our main repository.

folder structure

. ├── readme.md     └── locks         ├── claimed             ├── .gitkeep         └── unclaimed             ├── .gitkeep 

what wrong?

i tried 1 below, not doing of locks whenever claim it.

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} 

when trigger job1, see goes put locks , nothing. when hijack worker, see has created folder in tmp, expected. not sure what's wrong now.

i had forgotten critical part of step, documentation had mention that, create empty file in unclaimed, didn't , hence throwing up!

i added that, works.

the pipeline code has no problems. stuck option 2


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -