Jenkins currentBuild

From NovaOrdis Knowledge Base
Revision as of 04:26, 8 May 2021 by Ovidiu (talk | contribs) (Created page with "=Internal= * Jenkins Concepts =Overview= <code>currentBuild</code> is a global variable that may be used t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

currentResult

Typically "SUCCESS", "UNSTABLE" or "FAILURE". Is never null.