Hi, Jason,
problem is that someone forced pushed on master on 3rd party source repo.
GoCD collected those commits, made build with our source, all was fine.
Few days later, someone overwritten master. GoCD is stuck looking for
commit XYZ that was forced pushed, and does not collect latest master.
Material for that 3rd party looks like below:
{
"branch": "master",
"destination": "z3",
"name": "z3",
"type": "git",
"url": "https://github.com/somecompany/library"
}
I "fixed" buy changing url to e.g.
"https://github.com/somecompany/library.git",
and pushed, which works fine, but because of our other libs, this issues
long build for every component, plus makes unnecessary commits to our code
base.
Please let me know if you need more details.
Kind regards,
Bojan
On Monday, October 5, 2020 at 5:14:38 PM UTC+2 [email protected]
wrote:
> Hi Bojan,
>
> Could you elaborate on what the impact is to your process?
>
> It seems to me that if the source repo is not changing (no updates have
> been committed), then there should be nothing to build and it wouldn't be a
> problem that GoCD is "stuck" on the new version of master.
>
> I must be missing something on why this is an issue you need to solve.
>
> Regards,
> Jason
>
> On Monday, 5 October 2020 at 08:19:01 UTC-4 Bojan S. wrote:
>
>> As I explained, it is 3rd party repo. I cannot make commit to source I do
>> not own.
>>
>> Please read the original note. Thank you.
>> On Monday, October 5, 2020 at 1:13:07 PM UTC+2 [email protected]
>> wrote:
>>
>>> Make a new commit to that repo. It should fix the problem. GoCD stores
>>> the state in the DB.
>>>
>>> On Mon, 5 Oct, 2020, 15:54 Bojan S., <[email protected]> wrote:
>>>
>>>> Hi all.
>>>>
>>>> Source repo for 3rd party lib I am using has forced pushed some changed
>>>> to master, which our gocd accepted, but they removed those commits back to
>>>> pre force pushed state.
>>>>
>>>> Now, my pipeline is stuck at "new" forced pushed state, and it cannot
>>>> collect latest master, which is basically old one.
>>>>
>>>> How can I clear git cache on gocd server to use current master state
>>>> always without getting stuck on git repo illegal state?
>>>>
>>>> Kind regards
>>>> B
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "go-cd" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/go-cd/629dc34a-2f02-4479-8cd9-b257b7ad247fn%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/go-cd/629dc34a-2f02-4479-8cd9-b257b7ad247fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/go-cd/b0217cf9-7bb6-4086-9b5a-4ce5678a6accn%40googlegroups.com.