From 0cd86dc4929c1145e4d4a5c45d6df9606928280a Mon Sep 17 00:00:00 2001 From: hyderraza18 Date: Mon, 24 Nov 2025 16:53:53 +0530 Subject: [PATCH 1/3] Fix incorrect periodic trigger example in multibranch pipeline JCasC demo (#2731) --- demos/jobs/multibranch-github.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/demos/jobs/multibranch-github.yaml b/demos/jobs/multibranch-github.yaml index 63c107383d..723912219c 100644 --- a/demos/jobs/multibranch-github.yaml +++ b/demos/jobs/multibranch-github.yaml @@ -17,6 +17,8 @@ jobs: } } triggers { - periodic(5) + periodicFolderTrigger { + interval('5') + } } - } + } \ No newline at end of file From 2bb58084db7b11972673fea684e7a4d9ba628fd1 Mon Sep 17 00:00:00 2001 From: hyderraza18 Date: Mon, 24 Nov 2025 17:38:21 +0530 Subject: [PATCH 2/3] Add deprecation note for pre-3.2 matrix-auth JCasC syntax (#2678) --- demos/matrix-auth/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demos/matrix-auth/README.md b/demos/matrix-auth/README.md index 9d846e0c49..1eb060bc64 100644 --- a/demos/matrix-auth/README.md +++ b/demos/matrix-auth/README.md @@ -1,5 +1,10 @@ # matrix-auth-plugin +> **Note:** Starting from **matrix-auth 3.2**, the older +> `grantedPermissions:` JCasC syntax is **deprecated**. +> The examples below already use the new **`entries:`** format, which should be used going forward. + + Configuration of the [Matrix Authorization Strategy plugin](https://plugins.jenkins.io/matrix-auth) There are a couple of built-in authorizations to consider. From b773234fb07a18b3c78cb3873d98584ea6807847 Mon Sep 17 00:00:00 2001 From: hyderraza18 Date: Mon, 24 Nov 2025 18:22:32 +0530 Subject: [PATCH 3/3] docs: add docker-plugin SSH connector JCasC example (fixes #2739) --- demos/docker-plugin/README.md | 20 ++++++++++++++++++++ demos/docker-plugin/docker-plugin.ssh.yaml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 demos/docker-plugin/README.md create mode 100644 demos/docker-plugin/docker-plugin.ssh.yaml diff --git a/demos/docker-plugin/README.md b/demos/docker-plugin/README.md new file mode 100644 index 0000000000..d1285516f8 --- /dev/null +++ b/demos/docker-plugin/README.md @@ -0,0 +1,20 @@ +# Docker Plugin — SSH Connector JCasC Demo + +This demo provides a working Jenkins Configuration as Code (JCasC) example for configuring +the Docker plugin with the SSH connector. The existing documentation does not show how to +set up SSH-based agents using the docker-plugin, so this example is added to fill that gap. + +## SSH connector usage + +The docker-plugin exposes the `sshConnector` field for configuring SSH-based cloud agents. +Using other keys such as `ssh:` does not match the expected structure and will cause a +configuration error. + +A working configuration can be found in `docker-plugin-ssh.yaml`. The key part of the +connector configuration is: + +```yaml +connector: + sshConnector: + sshKeyCredentialsId: "my-ssh-key-id" + javaPath: "/opt/java/openjdk/bin/java" diff --git a/demos/docker-plugin/docker-plugin.ssh.yaml b/demos/docker-plugin/docker-plugin.ssh.yaml new file mode 100644 index 0000000000..0e3ebde86d --- /dev/null +++ b/demos/docker-plugin/docker-plugin.ssh.yaml @@ -0,0 +1,20 @@ +# demos/docker-plugin/docker-plugin-ssh.yaml +jenkins: + clouds: + - docker: + name: "my-docker-cloud" + dockerHost: + uri: "unix:///var/run/docker.sock" + templates: + - labelString: "worker1-agent" + dockerTemplateBase: + image: "jenkins/ssh-agent:latest-jdk17" + mounts: + - "type=tmpfs,destination=/run" + - "type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock" + + remoteFs: "/home/jenkins/agent" + connector: + sshConnector: + sshKeyCredentialsId: "my-ssh-key-id" + javaPath: "/opt/java/openjdk/bin/java"