Support parameterized DockerCloud agent images - #1360
Draft
hshibuya-dd wants to merge 1 commit into
Draft
Conversation
hshibuya-dd
force-pushed
the
hshibuya/parameterized-agent-image
branch
from
August 18, 2026 19:56
826d3c1 to
0a23db0
Compare
hshibuya-dd
marked this pull request as draft
August 18, 2026 20:10
Allow DockerCloud agent template images to reference Jenkins build parameters,
for example:
registry.example.com/ci/build-agent:${IMAGE_TAG}
This lets a job use its default image tag for normal builds while selecting an
isolated pull request image tag, such as `pr-1234`, for targeted validation.
Implementation:
- Resolve parameter values when a queue item enters the waiting state.
- Clone parameterized templates per queue item instead of mutating persisted
DockerCloud configuration.
- Preserve the configured template's container settings, connector, pull
strategy, timeouts, limits, retention strategy, and node properties.
- Assign each temporary template a unique label so concurrent builds do not
share image selections.
- Remove temporary templates when queue items leave the queue.
- Keep queue items whose temporary Docker image cannot be provisioned and show
the image, pull strategy, root cause, and retry countdown as their waiting
reason.
- Retry failed temporary-template provisioning after the cloud's configured
error duration instead of cancelling the queued build.
- Ignore missing or empty parameter values rather than constructing an invalid
image reference.
- Document parameterized image configuration and queued retry behavior in the
README and image help text.
hshibuya-dd
force-pushed
the
hshibuya/parameterized-agent-image
branch
from
September 1, 2026 09:49
0a23db0 to
6703590
Compare
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.
Allow DockerCloud agent template images to reference Jenkins build parameters, for example:
This lets a job use its default image tag for normal builds while selecting an isolated pull request image tag, such as
pr-1234, for targeted validation.Implementation:
Tests:
Testing done
Submitter checklist