Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaiza committed Jul 27, 2015
1 parent dffaec0 commit 4c67882
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/main/java/info/bluefloyd/jenkins/IssueUpdatesBuilder.java
Expand Up @@ -218,15 +218,17 @@ public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListen
logger.println("The selected issues (" + issues.size() + " in total) are:");
}

// reset the cache
projectVersionNameIdCache = new ConcurrentHashMap<String, Map<String,String>>();

// add the ids of the fixed versions if there are any
// This will also create new versions, if the Option is given.
Collection<String> fixVersionIds = new HashSet<String>();
if ( ! fixedVersionNames.isEmpty() ) {
fixVersionIds.addAll( mapFixedVersionNamesToIds(client, session, issues.get(0).getProject(), fixedVersionNames, logger) );
}
// reset the cache
projectVersionNameIdCache = new ConcurrentHashMap<String, Map<String,String>>();

// add the ids of the fixed versions if there are any
// This will also create new versions, if the Option is given.
Collection<String> fixVersionIds = new HashSet<String>();
if (!issues.isEmpty()) {
if ( ! fixedVersionNames.isEmpty() ) {
fixVersionIds.addAll( mapFixedVersionNamesToIds(client, session, issues.get(0).getProject(), fixedVersionNames, logger) );
}
}


for (RemoteIssue issue : issues) {
Expand Down

0 comments on commit 4c67882

Please sign in to comment.