From f3828ba9ca05f951412d73f1287cc0ca2bef9087 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 6 Jul 2025 13:34:18 +0200 Subject: [PATCH] [PR #10335/2ec3d022 backport][stable-10] jenkins_build: docs example for trigger with custom polling interval (#10354) jenkins_build: docs example for trigger with custom polling interval (#10335) (cherry picked from commit 2ec3d02215598c7ce398764c5daeacd0943a1ebf) Co-authored-by: Aditya Putta --- plugins/modules/jenkins_build.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/modules/jenkins_build.py b/plugins/modules/jenkins_build.py index cec8fcc490..190c93632f 100644 --- a/plugins/modules/jenkins_build.py +++ b/plugins/modules/jenkins_build.py @@ -99,6 +99,16 @@ EXAMPLES = r""" state: stopped url: http://localhost:8080 +- name: Trigger Jenkins build in detached mode + community.general.jenkins_build: + name: "detached-build" + state: present + user: admin + token: abcdefghijklmnopqrstuvwxyz123456 + url: http://localhost:8080 + detach: true + time_between_checks: 20 + - name: Delete a jenkins build using token authentication community.general.jenkins_build: name: "delete-experiment"