Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sayali Gaikawad <[email protected]>
  • Loading branch information
gaiksaya committed Oct 1, 2024
1 parent fe13d8e commit 810facc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vars/UpdateBuildFailureIssues.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
@param args.buildStartTimeFrom <optional> - Start time range to retrieve the documents. Defaults to 'now-6h'
@param ags.buildStartTimeTo <optional> - End time range to retrieve the documents. Defaults to 'now'
*/

import jenkins.ComponentBuildStatus

void call(Map args = [:]) {
lib = library(identifier: 'jenkins@main', retriever: legacySCM(scm))
def inputManifest = readYaml(file: args.inputManifestPath)
Expand All @@ -33,9 +36,11 @@ void call(Map args = [:]) {
def awsSecretKey = env.AWS_SECRET_ACCESS_KEY
def awsSessionToken = env.AWS_SESSION_TOKEN
def indexName = 'opensearch-distribution-build-results-*'

def componentBuildStatus = new ComponentBuildStatus(metricsUrl, awsAccessKey, awsSecretKey, awsSessionToken, indexName, this)

passedComponents = new ComponentBuildStatus(metricsUrl, awsAccessKey, awsSecretKey, awsSessionToken, indexName, this).getComponents('passed')
failedComponents = new ComponentBuildStatus(metricsUrl, awsAccessKey, awsSecretKey, awsSessionToken, indexName, this).getComponents('failed')
passedComponents = componentBuildStatus.getComponents('passed')
failedComponents = componentBuildStatus.getComponents('failed')
}
}

Expand Down

0 comments on commit 810facc

Please sign in to comment.