4
4
import com .google .common .collect .ImmutableList ;
5
5
import com .google .common .collect .ListMultimap ;
6
6
import com .google .common .collect .Lists ;
7
- import com .google .common .collect .Multimap ;
8
- import com .google .common .collect .Multiset ;
9
7
import hudson .EnvVars ;
10
8
import hudson .Extension ;
11
9
import hudson .Launcher ;
@@ -115,7 +113,7 @@ public boolean getTriggerWithNoParameters() {
115
113
116
114
/**
117
115
* @deprecated
118
- * Use {@link #getProjectListGeneral (ItemGroup, EnvVars)}
116
+ * Use {@link #getJobs (ItemGroup, EnvVars)}
119
117
*/
120
118
public List <AbstractProject > getProjectList (EnvVars env ) {
121
119
return getProjectList (null , env );
@@ -127,11 +125,11 @@ public List<AbstractProject> getProjectList(EnvVars env) {
127
125
* @param context
128
126
* The container with which to resolve relative project names.
129
127
* @deprecated
130
- * Use {@link #getProjectListGeneral (ItemGroup, EnvVars)}
128
+ * Use {@link #getJobs (ItemGroup, EnvVars)}
131
129
*/
132
- @ Deprecated // Prefer getProjectListGeneral since it can return implementations of the more general Job class
130
+ @ Deprecated
133
131
public List <AbstractProject > getProjectList (ItemGroup context , EnvVars env ) {
134
- return Util .filter (getProjectListGeneral (context ,env ), AbstractProject .class );
132
+ return Util .filter (getJobs (context , env ), AbstractProject .class );
135
133
}
136
134
137
135
/**
@@ -140,7 +138,7 @@ public List<AbstractProject> getProjectList(ItemGroup context, EnvVars env) {
140
138
* @param context
141
139
* The container with which to resolve relative project names.
142
140
*/
143
- public List <Job > getProjectListGeneral (ItemGroup context , EnvVars env ) {
141
+ public List <Job > getJobs (ItemGroup context , EnvVars env ) {
144
142
List <Job > projectList = new ArrayList <Job >();
145
143
projectList .addAll (Items .fromNameList (context , getProjects (env ), Job .class ));
146
144
return projectList ;
@@ -327,7 +325,7 @@ public List<Future<AbstractBuild>> perform(AbstractBuild<?, ?> build, Launcher l
327
325
List <Action > actions = getBaseActions (
328
326
ImmutableList .<AbstractBuildParameters >builder ().addAll (configs ).addAll (addConfigs ).build (),
329
327
build , listener );
330
- for (Job project : getProjectListGeneral (build .getRootBuild ().getProject ().getParent (), env )) {
328
+ for (Job project : getJobs (build .getRootBuild ().getProject ().getParent (), env )) {
331
329
List <Action > list = getBuildActions (actions , project );
332
330
333
331
futures .add (schedule (build , project , list ));
@@ -374,7 +372,7 @@ public ListMultimap<Job, Future<Run>> perform3(AbstractBuild<?, ?> build, Launch
374
372
375
373
for (List <AbstractBuildParameters > addConfigs : getDynamicBuildParameters (build , listener )) {
376
374
List <Action > actions = getBaseActions (ImmutableList .<AbstractBuildParameters >builder ().addAll (configs ).addAll (addConfigs ).build (), build , listener );
377
- for (Job project : getProjectListGeneral (build .getRootBuild ().getProject ().getParent (), env )) {
375
+ for (Job project : getJobs (build .getRootBuild ().getProject ().getParent (), env )) {
378
376
List <Action > list = getBuildActions (actions , project );
379
377
380
378
futures .put (project , schedule (build , project , list ));
0 commit comments