Skip to content

Commit

Permalink
other user id setting (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
paigerube14 authored Sep 8, 2022
1 parent b4f4345 commit a2f261d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
def userCause = currentBuild.rawBuild.getCause(Cause.UserIdCause)
def upstreamCause = currentBuild.rawBuild.getCause(Cause.UpstreamCause)

userId = "prubenda"
if (userCause) {
userId = userCause.getUserId()
}
Expand All @@ -21,8 +22,6 @@ else if (upstreamCause) {
}
if (userId) {
currentBuild.displayName = userId
} else {
userId = "prubenda"
}

println "user id $userId"
Expand Down

0 comments on commit a2f261d

Please sign in to comment.