Skip to content

webhook pulling wrong version of git repo #551

@jmcdonal

Description

@jmcdonal

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: Open Source Version 7.4
  • Ruby: 2.65
  • Distribution: RedHat 7.9
  • Module version: n/a

How to reproduce (e.g Puppet code you use)

Stock rpm install, out of the box configuration.

What are you seeing

The github webhook is sent and received by the puppet webhook and r10k is deploying the environment but it is using an older copy of the repo. e.g. :
Mar 10 13:14:37 hi-automation bundle: 2021-03-10T19:14:37.498Z 1319 TID-hnuin Deploy::EnvironmentWorker JID-e1230c37c97b53a50a57978c INFO: Environment production is now at 24a5fdedf2e6d655624dbded615394cebb645340

but the head is at: 72c9b6322aee2531e13c2796f8127baa34b492d6
$ git log
commit 72c9b6322aee2531e13c2796f8127baa34b492d6 (HEAD -> production, origin/production, origin/HEAD)
Author:
Date: Wed Mar 10 13:14:30 2021 -0600

test

commit 24a5fdedf2e6d655624dbded615394cebb645340
Author:
Date: Wed Mar 10 11:05:06 2021 -0600

test

What behaviour did you expect instead

I was expecting that the system would pull the latest version of the repo, not the previous version. It also seems to be stuck on the older version, so if I make a series of commits in quick secession, the repo is 'stuck' at this version.

Is there something I need to purge on the system after each run?

Output log

Any additional information you'd like to impart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions