Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-31911] Added support for Mantis plugin
Added TestCases and Docs for Mantis plugin [JENKINS-31911] Added support for Mantis plugin
- Loading branch information
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
.../main/docs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/mantis.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,8 @@ | ||
job('example') { | ||
publishers { | ||
mantis { | ||
keepNotePrivate(false) | ||
recordChangelogToNote() | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/MantisContext.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,22 @@ | ||
package javaposse.jobdsl.dsl.helpers.publisher | ||
|
||
import javaposse.jobdsl.dsl.Context | ||
|
||
class MantisContext implements Context { | ||
boolean keepNotePrivate = false | ||
boolean recordChangelogToNote = false | ||
|
||
/** | ||
* If set, it keeps note private. Defaults to {@code false} | ||
*/ | ||
void keepNotePrivate(boolean keepNotePrivate = true) { | ||
this.keepNotePrivate = keepNotePrivate | ||
} | ||
|
||
/** | ||
* If set, records changelog to note. Defaults to {@code false}. | ||
*/ | ||
void recordChangelogToNote(boolean recordChangelogToNote = true) { | ||
this.recordChangelogToNote = recordChangelogToNote | ||
} | ||
} |
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