Skip to content

Commit

Permalink
Merge pull request #73 from spudfkc/fix-no-scm-in-promotion
Browse files Browse the repository at this point in the history
[FIXED JENKINS-13751] - PromotionProcess returns SCM of its owner
  • Loading branch information
oleg-nenashev committed Nov 24, 2015
2 parents 069d9fd + 4624722 commit 350f706
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -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.security.ACL;
import hudson.tasks.BuildStep;
import hudson.tasks.BuildStepDescriptor;
Expand Down Expand Up @@ -110,6 +111,11 @@ public static PromotionProcess fromJson(StaplerRequest req, JSONObject o) throws
return p;
}

@Override
public SCM getScm() {
return this.getOwner().getScm();
}

@Override
public void doSetName(String name) {
super.doSetName(name);
Expand Down

0 comments on commit 350f706

Please sign in to comment.