Skip to content
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

Fix build on push + occasional failing builds #185

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

schnatterer
Copy link
Member

@schnatterer schnatterer commented Apr 11, 2024

Bug 1

Inside the GOP Jenkins build did no longer start automatically when pushing into the appropriate repo ins SCM-Manager.

Bug 2

Jenkins regularly fails with this:

TRACE c.c.gitops.utils.CommandExecutor - Executing command: 'ip route get 1'
13:25:54  java.lang.RuntimeException: Could not determine local ip address, because command 'ip route get 1' returned: ''

Work around this by implementing ip route get 1 Groovy-natively.

@schnatterer schnatterer marked this pull request as draft April 11, 2024 12:50
@schnatterer schnatterer changed the title Fix build on push Fix build on push + occasional failing builds Apr 11, 2024
@schnatterer schnatterer marked this pull request as ready for review April 11, 2024 15:13
While working on f85356f.
Using consistent terms makes the code easier to understand.
Because jenkins regularly fails with this:

TRACE c.c.gitops.utils.CommandExecutor - Executing command: 'ip route get 1'
13:25:54  java.lang.RuntimeException: Could not determine local ip address, because command 'ip route get 1' returned: ''

If we keep having problems with this, we might just remove the whole
localAddress part, see comment in the code.
@yannickchristhomas yannickchristhomas merged commit 7826cf0 into main Apr 29, 2024
1 check passed
@yannickchristhomas yannickchristhomas deleted the feature/fix-build-on-push branch April 29, 2024 16:14
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.

2 participants