-
Notifications
You must be signed in to change notification settings - Fork 830
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for git notes in git publisher
Added support for publishing git notes in the post-build gitpublisher. This is more or less copy-paste from the implementation of the git tag implementation.
- Loading branch information
Showing
4 changed files
with
153 additions
and
1 deletion.
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
30 changes: 30 additions & 0 deletions
30
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/NoteToPushContext.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,30 @@ | ||
package javaposse.jobdsl.dsl.helpers.publisher | ||
|
||
import javaposse.jobdsl.dsl.Context | ||
|
||
class NoteToPushContext implements Context { | ||
String message | ||
String namespace | ||
boolean replace | ||
|
||
/** | ||
* Sets the content of the note. | ||
*/ | ||
void message(String message) { | ||
this.message = message | ||
} | ||
|
||
/** | ||
* If set, sets the namespace of the note. | ||
*/ | ||
void namespace(String namespace) { | ||
this.namespace = namespace | ||
} | ||
|
||
/** | ||
* If set, replaces an existing note. Defaults to {@code false}. | ||
*/ | ||
void replace(boolean replace = true) { | ||
this.replace = replace | ||
} | ||
} |
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