简体   繁体   中英

Concourse git-resource paths list causes hangup in pipeline

I have a concourse server that is stuck on the preparing build stage: screencap of hangup

This issue only started happening after I specified a paths list in my git-resource source config:

    1 # Dockerfile source                                                            
    2 - name: test-git                                                               
    3   type: git
    4   source:
    5     uri: ((git-uri))
    6     branch: main
    7     paths:
    8     - Dockerfile

Dockerfile was in the top directory. I also tried moving Dockerfile to another folder: docker-file. Then I tried using a glob: docker-file/* and docker-file/** , but neither worked.

ref: https://github.com/concourse/git-resource

Wondering if there are any suggestions on causes

  1. You have a job with a test-git input unrestricted by paths - job is starting fine.
  2. You restrict the input only by selected paths, in this case Dockerfile - Concourse is now awaiting changes only to that path, and it doesn't take into account the original Dockerfile . Hence the hangup.
  3. Check in a comment or some whitespace to the Dockerfile - the job should start again.

I agree that this behavior, combined with message "latest version of resource not found" is perplexing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM