Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #24 from Brantone/master
Re-fixing JENKINS-24404 by ensuring passing build
  • Loading branch information
Brantone committed Sep 3, 2015
2 parents 95357f0 + 3700a0b commit c409c67
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/hudson/plugins/templateproject/ProxySCM.java
Expand Up @@ -179,11 +179,7 @@ public boolean supportsPolling() {

@Override
public void buildEnvVars(AbstractBuild<?, ?> build, java.util.Map<String, String> env) {
// Limitation : Currently only supports build variable for replacement.
// Gets into infinite loop using `getEnvironment() since it loops
// back to `getScm().buildEnvVars()`
String pName = Util.replaceMacro(getProjectName(), build.getBuildVariables());
getProjectScm().buildEnvVars(build, env);
getProjectScm(build).buildEnvVars(build, env);
}

@Override
Expand Down

0 comments on commit c409c67

Please sign in to comment.