8000 PR creation skipped when rerun after error 'deploy' step · Issue #13 · cloudogu/gitops-build-lib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PR creation skipped when rerun after error 'deploy' step #13

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
phaenr opened this issue Apr 23, 2021 · 0 comments
Open

PR creation skipped when rerun after error 'deploy' step #13

phaenr opened this issue Apr 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@phaenr
Copy link
Contributor
phaenr commented Apr 23, 2021

Scenario:

The build job on jenkins runs using the deployViaGitops() the gitops-build-lib is exposing. After successful builds, tests, image creation and also branch creation it failed when creating a PR against our SCM.
It failed due to some networking issue when creating the PR via API-call using curl. Due to this error, it did not open up an PR.
When trying to rerun the exact same build job it did not create a PR due to the branch containing the changes already exists.
Creating the PR is dependent from the branch being created within the same run.

Solutions:

  • Check whether the branch containing the changes already exists and create a PR if it is missing even though the branch was not created in this run
  • Implement retry mechanisms for the PR-creation
@phaenr phaenr added the bug Something isn't working label Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0