Skip to content
Browse files
[FIXED JENKINS-30531] Set SCMRevisionAction when we do a build, so cl…
…ient code can get access to this record.

Has the happy side effect of fixing JENKINS-30222: scm as a global variable can be used unqualified from library code.
Originally-Committed-As: 4e9bd117797620e2f11c03f4053e8210d3086eac
  • Loading branch information
jglick committed Nov 3, 2015
1 parent f1b67bb commit 587f35da06082e0ee5c8f925d0877a63c0e123b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 cps/src/main/java/org/jenkinsci/plugins/workflow/cps/
@@ -126,7 +126,7 @@ public Object getProperty(String property) {
return super.getProperty(property);

@CheckForNull Run<?,?> $build() throws IOException {
public @CheckForNull Run<?,?> $build() throws IOException {
FlowExecutionOwner owner = execution.getOwner();
Queue.Executable qe = owner.getExecutable();
if (qe instanceof Run) {

0 comments on commit 587f35d

Please sign in to comment.