Skip to content

Commit

Permalink
Change precondition for new metric (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikRehmTT committed Sep 4, 2024
1 parent b020d04 commit a32d77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/pipeline2ATX.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def calculateTime(executionTestSteps, build) {
def setupDuration = 0.0
def executionDuration = 0.0
def teardownDuration = 0.0
def commitTimeStamp = currentBuild.getBuildCauses('jenkins.branch.BranchEventCause').isEmpty() ? null : getCommitTimestamp()
def commitTimeStamp = !env.GIT_COMMIT ? null : getCommitTimestamp()
def startTimeMillis = build.getStartTimeInMillis()
def queueDuration = (startTimeMillis - build.getTimeInMillis()) / 1000.0
def errorTime = calculateErrorTime(executionTestSteps)
Expand Down

0 comments on commit a32d77a

Please sign in to comment.