CI/CD
Invoked with levelops.cicd()
.
1. getStageIds(jobRunId) : String[]
Description: List stages of a given CI/CD Job run, if any.
Returns: Array of stage ids. Can be empty if the job doesn’t have stages.
Example:
2. getStageName(stageId) : String
Description: Look-up the name of a Stage given its id.
Returns: Stage name, or
null
if it wasn't found.Example:
3. getTriageRuleResults(jobRunId, [ stageId ]) : TriageRuleMatch[]
Description: List eventual Triage rule matches for a given Job run, and optionally, a given stage.
Returns: Array of TriageRuleHit objects. See class methods below.
Examples:
4. TriageRuleMatch Class
TriageRuleMatch.getRuleName() : String
TriageRuleMatch.getCount() : int
TriageRuleMatch.getMatchContent() : String
5. hierarchicalConfigTableLookUp(jobRundId, stageId, tableName, jobColumnName, stageColumnName) : Object
Parameters:
stageId
andstageColumnName
can be left null.Returns: JSON object representing a table row (a map of column keys to values)
Examples:
Last updated