Skip to content

Always clone a fresh copy of the repo#65

Open
meurig wants to merge 1 commit intopieterlange:masterfrom
meurig:master
Open

Always clone a fresh copy of the repo#65
meurig wants to merge 1 commit intopieterlange:masterfrom
meurig:master

Conversation

@meurig
Copy link

@meurig meurig commented Dec 17, 2019

The restart policy of OnFailure causes the same pod to be restarted if there's a problem.
This is an issue if that pod already has the changes checked in, as the rest of the script will not find changes (or attempt to commit or push them) resulting in the second attempt always passing (masking the problem).
This change ensure's there's a clean repo on each run, so successive restarts will correctly try (and potentially fail) again.

The restart policy of OnFailure causes the same pod to be restarted if there's a problem.
This is an issue if that pod already has the changes checked in, as the rest of the script will not find changes (or attempt to commit or push them) resulting in the second attempt always passing (masking the problem).
This change ensure's there's a clean repo on each run, so successive restarts will correctly try (and potentially fail) again.
@meurig
Copy link
Author

meurig commented Dec 17, 2019

My attempt to fix the following issue:
#66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant