concourse / git-resource

tracks commits in a branch of a Git repository
Apache License 2.0
192 stars 288 forks source link

Get the latest commit of the repo always #319

Open sskmail14 opened 4 years ago

sskmail14 commented 4 years ago

I have multiple repo to be referred in a pipeline.

Out of which one is the repo that has the configs of CI files, as part of the pipeline I would like to get the latest commit of the CI files always.

So in brief: I would like to get the latest commit of the repo always whenever the new build is triggered in concourse. trigger:true is not intended since the trigger should happen via another repo.

YoussB commented 4 years ago

Hey @sskmail14, thanks for waiting until I came back to this issue. I am not really sure I understand the use case needed here. from my basic understanding, you want to configure 2 resources with one using trigger: true and make sure the other is getting the latest version?

YoussB commented 4 years ago

Also, I want to point out that, it is way easier to get help on Discord, there are a lot of folks from the Concourse team, and the community ready to help with your setup. We are happy to discuss problems with resources and feature requests here.

sskmail14 commented 3 years ago

Thanks @YoussB .

Am having two resource

  1. Git-Resource-1
  2. Git-Resource-2

Where the build will get triggered once I make any changes as part of Git-Resource-1 but I always want Git-Resource-2 to get the latest commit.

My concern here is if I set the trigger:true the pipeline gets triggered for commit that am making out of that repo. I didn't want the pipeline to get it triggered for that repo change, but it has to pick the latest commit of that branch whenever a build is getting triggered.

Note: Am using webhook from git to trigger the pipelines.