Jenkins currentBuild: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Jenkins Concepts =Overview= <code>currentBuild</code> is a global variable that may be used t...") |
(→result) |
||
Line 9: | Line 9: | ||
The build number, which is an integer. | The build number, which is an integer. | ||
==<tt>result</tt>== | ==<tt>result</tt>== | ||
Typically "SUCCESS", "UNSTABLE" or "FAILURE". May be null for an ongoing build. | Typically "SUCCESS", "UNSTABLE" or "FAILURE". May be null for an ongoing build. The property is writable. | ||
==<tt>currentResult</tt>== | ==<tt>currentResult</tt>== | ||
Typically "SUCCESS", "UNSTABLE" or "FAILURE". Is never null. | Typically "SUCCESS", "UNSTABLE" or "FAILURE". Is never null. |
Revision as of 04:29, 8 May 2021
Internal
Overview
currentBuild
is a global variable that may be used to refer to the currently running build. It has the following properties:
Properties
number
The build number, which is an integer.
result
Typically "SUCCESS", "UNSTABLE" or "FAILURE". May be null for an ongoing build. The property is writable.
currentResult
Typically "SUCCESS", "UNSTABLE" or "FAILURE". Is never null.