This class extends Jenkins current build functions.
// init Build instance def build = new Build(currentBuild) // show change summary echo build.getChangeSummary() // show test summary echo build.getTestSummary()
Type | Name and description |
---|---|
java.lang.Object |
_build Reference to the Jenkins build variable. |
Constructor and description |
---|
Build
(java.lang.Object build) Constructs the class. |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getChangeSummary() Render list of changes for a build. |
|
java.lang.String |
getTestSummary() Gets a test summary string. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructs the class.
def build = new Build(currentBuild)
build
- Normally should be "currentBuild" (org.jenkinsci.plugins.workflow.support.steps.build.RunWrapper)Render list of changes for a build.
Gets a test summary string.
Groovy Documentation