Skip to content
Permalink
Browse files

Merge pull request #208 from sumbach/patch-1

Use BuildChooserContext environment in InverseBuildChooser

[Fixed JENKINS-22053]
  • Loading branch information
MarkEWaite committed Apr 5, 2014
2 parents 6472494 + 8e827f2 commit 8696bc00a1389cf5ccf6faf59d53a664e09832a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/plugins/git/util/InverseBuildChooser.java
@@ -42,7 +42,7 @@ public InverseBuildChooser() {
String singleBranch, GitClient git, TaskListener listener,
BuildData buildData, BuildChooserContext context) throws GitException, IOException, InterruptedException {

EnvVars env = context.getBuild().getEnvironment();
EnvVars env = context.getEnvironment();
GitUtils utils = new GitUtils(listener, git);
List<Revision> branchRevs = new ArrayList<Revision>(utils.getAllBranchRevisions());
List<BranchSpec> specifiedBranches = gitSCM.getBranches();

0 comments on commit 8696bc0

Please sign in to comment.
You can’t perform that action at this time.