Skip to content

docs: Add pipeline lock examples#1014

Merged
mPokornyETM merged 1 commit intomasterfrom
docs/740-timeout-inside-lock
Apr 20, 2026
Merged

docs: Add pipeline lock examples#1014
mPokornyETM merged 1 commit intomasterfrom
docs/740-timeout-inside-lock

Conversation

@mPokornyETM
Copy link
Copy Markdown
Contributor

@mPokornyETM mPokornyETM commented Apr 19, 2026

Summary

Add documentation examples for two common use cases.

Timeout inside lock (#740)

When timeout() wraps an entire pipeline or stage, the clock starts before the lock is acquired. Jobs that wait in the queue can time out before executing.

Solution: Place timeout() inside lock() — the countdown begins only after the resource is acquired.

Resource properties (#759)

Documents how resource properties (name:value pairs) are exposed as environment variables via the variable parameter, including naming patterns, filtering by properties, and common pitfalls.

Fixes #740
Fixes #759

@mPokornyETM mPokornyETM requested a review from a team as a code owner April 19, 2026 19:15
@mPokornyETM mPokornyETM force-pushed the docs/740-timeout-inside-lock branch from f9b58ec to 3f11c49 Compare April 19, 2026 19:44
@mPokornyETM mPokornyETM added merge-in-1-day-without-review Auto-approve countdown ready for review PR is ready for review labels Apr 20, 2026
@mPokornyETM mPokornyETM force-pushed the docs/740-timeout-inside-lock branch from f597eb8 to d905685 Compare April 20, 2026 08:12
@github-actions
Copy link
Copy Markdown
Contributor

⏸️ Auto-merge countdown PAUSED: CI checks are not passing. The countdown will resume when all checks are green.

@mPokornyETM mPokornyETM force-pushed the docs/740-timeout-inside-lock branch from d905685 to a569d32 Compare April 20, 2026 09:40
@mPokornyETM mPokornyETM changed the title docs: Add timeout-inside-lock example docs: Add timeout-inside-lock and resource-properties examples Apr 20, 2026
@mPokornyETM mPokornyETM changed the title docs: Add timeout-inside-lock and resource-properties examples docs: Add pipeline lock examples Apr 20, 2026
@mPokornyETM mPokornyETM merged commit c3eeb43 into master Apr 20, 2026
23 of 26 checks passed
@mPokornyETM mPokornyETM deleted the docs/740-timeout-inside-lock branch April 20, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation merge-in-1-day-without-review Auto-approve countdown ready for review PR is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to use any properties (name:value) defined for a resource Jenkins Pipeline Timeout Handling for Queue Wait Time

1 participant