git-resource icon indicating copy to clipboard operation
git-resource copied to clipboard

Get the latest commit of the repo always

Open sskmail14 opened this issue 5 years ago • 3 comments

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.

sskmail14 avatar May 10 '20 02:05 sskmail14

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 avatar Jun 02 '20 13:06 YoussB

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.

YoussB avatar Jun 02 '20 13:06 YoussB

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.

sskmail14 avatar Jan 19 '21 02:01 sskmail14