Skip to content
Permalink
Browse files
  • Loading branch information
jbaiza committed Jul 27, 2015
1 parent dffaec0 commit 4c678827d5512f36a081fad61c2b8984e300d311
Showing with 11 additions and 9 deletions.
  1. +11 −9 src/main/java/info/bluefloyd/jenkins/IssueUpdatesBuilder.java
@@ -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) {

0 comments on commit 4c67882

Please sign in to comment.