Skip to content
Browse files
[FIXED JENKINS-13751] Allow reference to base SCM in promotion process
Previously, plugins such as the Git Publisher would not work in promotion processes because the SCM reference would be

This just makes a change to get the base job's SCM when getSCM is called on the promotion process, allowing the use of
steps such as the Git Publisher in promotion processes.
  • Loading branch information
Nick Caley committed Nov 11, 2015
1 parent 89aa15d commit 4624722341cf34cab83f00029ac9ddf7163e6be1
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/hudson/plugins/promoted_builds/
@@ -30,6 +30,7 @@
import hudson.model.labels.LabelAtom;
import hudson.model.labels.LabelExpression;
import hudson.plugins.promoted_builds.conditions.ManualCondition.ManualApproval;
import hudson.scm.SCM;
import hudson.tasks.BuildStep;
import hudson.tasks.BuildStepDescriptor;
@@ -110,6 +111,11 @@ public static PromotionProcess fromJson(StaplerRequest req, JSONObject o) throws
return p;

public SCM getScm() {
return this.getOwner().getScm();

public void doSetName(String name) {

0 comments on commit 4624722

Please sign in to comment.