Navigation Menu

Skip to content

Commit

Permalink
[JENKINS-17680] Changed a confusiong method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikedam committed Aug 8, 2013
1 parent 3c6babe commit 355aedb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hudson/plugins/copyartifact/CopyArtifact.java
Expand Up @@ -146,7 +146,7 @@ private static synchronized void setUpgradeNeeded() {
}

// get all CopyArtifacts configured to AbstractProject. This works both for Project and MatrixProject.
private static List<CopyArtifact> getCopiers(AbstractProject<?,?> project) throws IOException {
private static List<CopyArtifact> getCopyArtifactsInProject(AbstractProject<?,?> project) throws IOException {
DescribableList<Builder,Descriptor<Builder>> list =
project instanceof Project ? ((Project<?,?>)project).getBuildersList()
: (project instanceof MatrixProject ?
Expand All @@ -165,7 +165,7 @@ public static void upgradeCopyArtifact() {
boolean isUpgraded = false;
for (AbstractProject<?,?> project: Jenkins.getInstance().getAllItems(AbstractProject.class)) {
try {
for (CopyArtifact target: getCopiers(project)) {
for (CopyArtifact target: getCopyArtifactsInProject(project)) {
try {
if (target.upgradeIfNecessary(project)) {
isUpgraded = true;
Expand Down Expand Up @@ -405,7 +405,7 @@ else if (ca.getProjectName().startsWith(oldName + '/'))
}

private static List<CopyArtifact> getCopiers(AbstractProject<?,?> project) throws IOException {
List<CopyArtifact> copiers = CopyArtifact.getCopiers(project);
List<CopyArtifact> copiers = CopyArtifact.getCopyArtifactsInProject(project);
for (CopyArtifact copier : copiers) {
copier.upgradeIfNecessary(project);
}
Expand Down

0 comments on commit 355aedb

Please sign in to comment.