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
[JENKINS-31830] Added support for railsNotes which it's part of the R…
…ubyMetrics Reports Plugin Added no options test case for railsNotes Fixed empty attribute since it might be empty in some cases Fixed empty attribute since it might be empty in some cases
- Loading branch information
Showing
4 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...n/docs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/railsNotes.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 { | ||
railsNotes { | ||
rakeVersion('(Default)') | ||
rakeWorkingDir('src') | ||
} | ||
} | ||
} |
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
22 changes: 22 additions & 0 deletions
22
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/RailsNotesContext.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 RailsNotesContext implements Context { | ||
String rakeVersion = '(Default)' | ||
String rakeWorkingDir | ||
|
||
/** | ||
* Sets the Rake Version. | ||
*/ | ||
void rakeVersion(String rakeVersion) { | ||
this.rakeVersion = rakeVersion | ||
} | ||
|
||
/** | ||
* Sets the rake working directory. | ||
*/ | ||
void rakeWorkingDir(String rakeWorkingDir) { | ||
this.rakeWorkingDir = rakeWorkingDir | ||
} | ||
} |
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