Skip to content
Permalink
Browse files
Merge pull request #73 from spudfkc/fix-no-scm-in-promotion
[FIXED JENKINS-13751] - PromotionProcess returns SCM of its owner
  • Loading branch information
oleg-nenashev committed Nov 24, 2015
2 parents 069d9fd + 4624722 commit 350f706e3157e7b1a07778bfcb0e518bee4e3246
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java
@@ -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;
@@ -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);

0 comments on commit 350f706

Please sign in to comment.