Skip to content

Commit 05f713e

Browse files
authored
Add an example to configure the plugin via JCasC (#133)
1 parent f221623 commit 05f713e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ image:doc/images/global_categoryConfig.png[Global Category Configuration]
5151

5252
To set an unlimited value of concurrent builds for a restriction, use 0.
5353

54+
Also global configuration could be configured via https://plugins.jenkins.io/configuration-as-code/[Jenkins Configuration as Code] (JCasC) as following:
55+
[source,yaml]
56+
----
57+
unclassified:
58+
throttleJobProperty:
59+
categories:
60+
- categoryName: "myThrottleCategory"
61+
maxConcurrentTotal: 5
62+
maxConcurrentPerNode: 2
63+
nodeLabeledPairs:
64+
- throttledNodeLabel: "docker"
65+
maxConcurrentPerNodeLabeled: 1
66+
----
67+
5468
=== Throttling of classic job types
5569

5670
Classic job types (e.g., Freestyle, Matrix, and Job DSL) can be configured via job properties in the job configuration screen.

0 commit comments

Comments
 (0)