Support Alpine-based containers with Agent Injection#2823
Draft
zhan9san wants to merge 1 commit intojenkinsci:masterfrom
Draft
Support Alpine-based containers with Agent Injection#2823zhan9san wants to merge 1 commit intojenkinsci:masterfrom
zhan9san wants to merge 1 commit intojenkinsci:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix #2822
Testing done
Add agentInjectionImage configuration for Alpine support
Adds an optional agentInjectionImage field to PodTemplate, allowing users to specify a custom agent injection image (e.g., Alpine variants) instead
of always using the default glibc-based image.
MOTIVATION
Agent injection currently always uses jenkins/inbound-agent:3355.v388858a_47b_33-3-jdk21, which is incompatible with Alpine containers (musl libc
vs glibc).
CHANGES
TESTING
Automated: Added 3 test cases in PodTemplateBuilderTest covering custom image usage, priority override, and backward compatibility. All 17 tests
pass.
Manual: Deployed plugin, configured PodTemplate with agentInjectionImage=jenkins/inbound-agent:3355.v388858a_47b_33-3-alpine-jdk21, verified init
container uses specified image, confirmed agent connects with Alpine container.
BACKWARD COMPATIBILITY
Fully compatible - existing templates without the field use default behavior unchanged.
here is the generated template.
Submitter checklist