Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #711 from daspilker/JENKINS-30543
[JENKINS-30543] added support for regular expression option for Task Scanner plugin
- Loading branch information
Showing
5 changed files
with
140 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/TaskScannerContext.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package javaposse.jobdsl.dsl.helpers.publisher | ||
|
||
import javaposse.jobdsl.dsl.JobManagement | ||
import javaposse.jobdsl.dsl.RequiresPlugin | ||
|
||
class TaskScannerContext extends StaticAnalysisContext { | ||
protected final JobManagement jobManagement | ||
|
||
boolean regularExpression | ||
|
||
TaskScannerContext(JobManagement jobManagement) { | ||
this.jobManagement = jobManagement | ||
} | ||
|
||
/** | ||
* If set, treats the tag identifiers as regular expression. | ||
* | ||
* @since 1.42 | ||
*/ | ||
@RequiresPlugin(id = 'tasks', minimumVersion = '4.41') | ||
void regularExpression(boolean regularExpression = true) { | ||
this.regularExpression = regularExpression | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters