Unverified Commit 061a5af5 authored by Keshav Prasad's avatar Keshav Prasad Committed by GitHub
Browse files

Variable scope

parent e26d6781
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -8,7 +8,7 @@ def call() {
stage('check upstream') {
values = [:]
upstream = currentBuild.rawBuild.getCause(hudson.model.Cause$UpstreamCause)
def upstream = currentBuild.rawBuild.getCause(hudson.model.Cause$UpstreamCause)
triggerCause = upstream?.shortDescription
if (triggerCause != null)
triggerCause = triggerCause.split()[4].replaceAll('"', '')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment