@@ -27,6 +27,7 @@ abstract class Job extends Item {
2727
2828 /**
2929 * Creates a new job configuration, based on the job template referenced by the parameter and stores this.
30+ *
3031 * @param templateName the name of the template upon which to base the new job
3132 * @return a new graph of groovy.util.Node objects, representing the job configuration structure
3233 * @throws JobTemplateMissingException
@@ -60,7 +61,7 @@ abstract class Job extends Item {
6061
6162 /**
6263 * "Restrict where this project can be run"
63- * <assignedNode>FullTools & amp ;& amp ; RPM & amp ;& amp ; DC</assignedNode>
64+ *
6465 * @param labelExpression Label of node to use, if null is passed in, the label is cleared out and it can roam
6566 * @return
6667 */
@@ -78,19 +79,6 @@ abstract class Job extends Item {
7879
7980 /**
8081 * Add environment variables to the build.
81- *
82- * <project>
83- * <properties>
84- * <EnvInjectJobProperty>
85- * <info>
86- * <propertiesContent>TEST=foo BAR=123</propertiesContent>
87- * <loadFilesFromMaster>false</loadFilesFromMaster>
88- * </info>
89- * <on>true</on>
90- * <keepJenkinsSystemVariables>true</keepJenkinsSystemVariables>
91- * <keepBuildVariables>true</keepBuildVariables>
92- * <contributors/>
93- * </EnvInjectJobProperty>
9482 */
9583 void environmentVariables (@DslContext (EnvironmentVariableContext ) Closure envClosure ) {
9684 environmentVariables(null , envClosure)
@@ -116,21 +104,6 @@ abstract class Job extends Item {
116104 }
117105 }
118106
119- /**
120- * <project>
121- * <properties>
122- * <hudson.plugins.throttleconcurrents.ThrottleJobProperty>
123- * <maxConcurrentPerNode>0</maxConcurrentPerNode>
124- * <maxConcurrentTotal>0</maxConcurrentTotal>
125- * <categories>
126- * <string>CDH5-repo-update</string>
127- * </categories>
128- * <throttleEnabled>true</throttleEnabled>
129- * <throttleOption>category</throttleOption>
130- * </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
131- * <properties>
132- * </project>
133- */
134107 void throttleConcurrentBuilds (@DslContext (ThrottleConcurrentBuildsContext ) Closure throttleClosure ) {
135108 ThrottleConcurrentBuildsContext throttleContext = new ThrottleConcurrentBuildsContext ()
136109 ContextHelper . executeInContext(throttleClosure, throttleContext)
@@ -154,17 +127,6 @@ abstract class Job extends Item {
154127 }
155128 }
156129
157- /**
158- * <project>
159- * <properties>
160- * <org.jenkins.plugins.lockableresources.RequiredResourcesProperty>
161- * <resourceNames>lock-resource</resourceNames>
162- * <resourceNamesVar>NAMES</resourceNamesVar>
163- * <resourceNumber>0</resourceNumber>
164- * </org.jenkins.plugins.lockableresources.RequiredResourcesProperty>
165- * <properties>
166- * </project>
167- */
168130 void lockableResources (String resources , @DslContext (LockableResourcesContext ) Closure lockClosure = null ) {
169131 LockableResourcesContext lockContext = new LockableResourcesContext ()
170132 ContextHelper . executeInContext(lockClosure, lockContext)
@@ -182,24 +144,13 @@ abstract class Job extends Item {
182144 }
183145 }
184146
185- /**
186- * <disabled>true</disabled>
187- */
188147 void disabled (boolean shouldDisable = true ) {
189148 withXmlActions << WithXmlAction . create { Node project ->
190149 Node node = methodMissing(' disabled' , shouldDisable)
191150 project / node
192151 }
193152 }
194153
195- /**
196- * <logRotator>
197- * <daysToKeep>14</daysToKeep>
198- * <numToKeep>50</numToKeep>
199- * <artifactDaysToKeep>5</artifactDaysToKeep>
200- * <artifactNumToKeep>20</artifactNumToKeep>
201- * </logRotator>
202- */
203154 void logRotator (int daysToKeepInt = -1 , int numToKeepInt = -1 ,
204155 int artifactDaysToKeepInt = -1 , int artifactNumToKeepInt = -1 ) {
205156 withXmlActions << WithXmlAction . create { Node project ->
@@ -213,22 +164,16 @@ abstract class Job extends Item {
213164 }
214165
215166 /**
216- * Block build if certain jobs are running
217- * <properties>
218- * <hudson.plugins.buildblocker.BuildBlockerProperty>
219- * <useBuildBlocker>true</useBuildBlocker> <!-- Always true -->
220- * <blockingJobs>JobA</blockingJobs>
221- * </hudson.plugins.buildblocker.BuildBlockerProperty>
222- * </properties>
167+ * Block build if certain jobs are running.
223168 */
224169 void blockOn (Iterable<String > projectNames ) {
225170 blockOn(projectNames. join(' \n ' ))
226171 }
227172
228173 /**
229174 * Block build if certain jobs are running.
175+ *
230176 * @param projectName Can be regular expressions. Newline delimited.
231- * @return
232177 */
233178 void blockOn (String projectName ) {
234179 withXmlActions << WithXmlAction . create { Node project ->
@@ -241,6 +186,7 @@ abstract class Job extends Item {
241186
242187 /**
243188 * Name of the JDK installation to use for this job.
189+ *
244190 * @param jdkArg name of the JDK installation to use for this job.
245191 */
246192 void jdk (String jdkArg ) {
@@ -254,12 +200,6 @@ abstract class Job extends Item {
254200 * Priority of this job. Requires the
255201 * <a href =" https://wiki.jenkins-ci.org/display/JENKINS/Priority+Sorter+Plugin" >Priority Sorter Plugin</a>.
256202 * Default value is 100.
257- *
258- * <properties>
259- * <hudson.queueSorter.PrioritySorterJobProperty plugin="PrioritySorter@1.3">
260- * <priority>100</priority>
261- * </hudson.queueSorter.PrioritySorterJobProperty>
262- * </properties>
263203 */
264204 void priority (int value ) {
265205 withXmlActions << WithXmlAction . create { Node project ->
@@ -337,9 +277,7 @@ abstract class Job extends Item {
337277 }
338278
339279 /**
340- * Configures the keep Dependencies Flag which can be set in the Fingerprinting action
341- *
342- * <keepDependencies>true</keepDependencies>
280+ * Configures the keep Dependencies Flag which can be set in the Fingerprinting action.
343281 */
344282 void keepDependencies (boolean keep = true ) {
345283 withXmlActions << WithXmlAction . create { Node project ->
@@ -349,9 +287,7 @@ abstract class Job extends Item {
349287 }
350288
351289 /**
352- * Configures the 'Execute concurrent builds if necessary' flag
353- *
354- * <concurrentBuild>true</concurrentBuild>
290+ * Configures the 'Execute concurrent builds if necessary' flag.
355291 */
356292 void concurrentBuild (boolean allowConcurrentBuild = true ) {
357293 withXmlActions << WithXmlAction . create { Node project ->
@@ -362,20 +298,6 @@ abstract class Job extends Item {
362298
363299 /**
364300 * Configures the Notification Plugin.
365- *
366- * <properties>
367- * <com.tikal.hudson.plugins.notification.HudsonNotificationProperty>
368- * <endpoints>
369- * <com.tikal.hudson.plugins.notification.Endpoint>
370- * <protocol>HTTP</protocol>
371- * <format>JSON</format>
372- * <url />
373- * <event>all</event>
374- * <timeout>30000</timeout>
375- * </com.tikal.hudson.plugins.notification.Endpoint>
376- * </endpoints>
377- * </com.tikal.hudson.plugins.notification.HudsonNotificationProperty>
378- * </properties>
379301 */
380302 void notifications (@DslContext (NotificationContext ) Closure notificationClosure ) {
381303 NotificationContext notificationContext = new NotificationContext (jobManagement)
@@ -388,18 +310,6 @@ abstract class Job extends Item {
388310 }
389311 }
390312
391- /**
392- * <properties>
393- * <hudson.plugins.batch__task.BatchTaskProperty>
394- * <tasks>
395- * <hudson.plugins.batch__task.BatchTask>
396- * <name>Hello World</name>
397- * <script>echo Hello World</script>
398- * </hudson.plugins.batch__task.BatchTask>
399- * </tasks>
400- * </hudson.plugins.batch__task.BatchTaskProperty>
401- * </properties>
402- */
403313 void batchTask (String name , String script ) {
404314 withXmlActions << WithXmlAction . create { Node project ->
405315 Node batchTaskProperty = project / 'properties' / ' hudson.plugins.batch__task.BatchTaskProperty'
@@ -410,14 +320,6 @@ abstract class Job extends Item {
410320 }
411321 }
412322
413- /**
414- * <properties>
415- * <se.diabol.jenkins.pipeline.PipelineProperty>
416- * <taskName>integration-tests</taskName>
417- * <stageName>qa</stageName>
418- * </se.diabol.jenkins.pipeline.PipelineProperty>
419- * </properties>
420- */
421323 void deliveryPipelineConfiguration (String stageName , String taskName = null ) {
422324 if (stageName || taskName) {
423325 withXmlActions << WithXmlAction . create { Node project ->
0 commit comments