Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-31830] Added support for flog publisher as part of the RubyM…
…etrics Reports Plugin
- Loading branch information
Showing
4 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...rc/main/docs/examples/javaposse/jobdsl/dsl/helpers/publisher/PublisherContext/flog.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,7 @@ | ||
job('example') { | ||
publishers { | ||
flog { | ||
rubyDirectories('folder') | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/publisher/FlogContext.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,14 @@ | ||
package javaposse.jobdsl.dsl.helpers.publisher | ||
|
||
import javaposse.jobdsl.dsl.Context | ||
|
||
class FlogContext implements Context { | ||
String rubyDirectories | ||
|
||
/** | ||
* Specifies the ruby directories to monitorize with Flog, relative to the workspace. | ||
*/ | ||
void rubyDirectories(String rubyDirectories) { | ||
this.rubyDirectories = rubyDirectories | ||
} | ||
} |
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