Skip to content

Commit

Permalink
Merge pull request #208 from sumbach/patch-1
Browse files Browse the repository at this point in the history
Use BuildChooserContext environment in InverseBuildChooser

[Fixed JENKINS-22053]
  • Loading branch information
MarkEWaite committed Apr 5, 2014
2 parents 6472494 + 8e827f2 commit 8696bc0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -42,7 +42,7 @@ public Collection<Revision> getCandidateRevisions(boolean isPollCall,
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();
Expand Down

0 comments on commit 8696bc0

Please sign in to comment.