Skip to content

Always clone a fresh copy of the repo #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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