Skip to content

Commit

Permalink
adjust env handling (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinGroscheTT committed Sep 4, 2024
1 parent 8a9ead8 commit 225bc5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vars/pipeline2ATX.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def getTechnicalErrorRate(){
]
}"""
def json
withCredentials([string(credentialsId: 'TG_authKey_release', variable: 'authKey')]) {
withCredentials([string(credentialsId: env.authKey, variable: 'authKey')]) {
def response = httpRequest url: "${TESTGUIDE_url}api/report/testCaseExecutions/filter?projectId=${TESTGUIDE_projectID}&authKey=${authKey}", httpMode: 'POST', requestBody: "$filter", contentType: 'APPLICATION_JSON', acceptType: 'APPLICATION_JSON'
json = readJSON(text: response.content)
}
Expand All @@ -344,6 +344,7 @@ def getTechnicalErrorRate(){
errorCounter++
}
}
println(json)
if(!errorCounter){
return rate
}
Expand Down

0 comments on commit 225bc5d

Please sign in to comment.