public Collection<? extends Action> getProjectActions(final AbstractProject<?, ?> project) {
   Collection<Action> actions = new ArrayList<Action>();
   for (BuildStep publisher : getPublisherList()) {
     actions.addAll(publisher.getProjectActions(project));
   }
   return actions;
 }
Beispiel #2
0
  protected List<Action> createTransientActions() {
    List<Action> r = super.createTransientActions();

    // Fix for ISSUE-1149
    for (MavenModule module : modules.values()) {
      module.updateTransientActions();
    }

    if (publishers
        != null) // this method can be loaded from within the onLoad method, where this might be
                 // null
    for (BuildStep step : publishers) r.addAll(step.getProjectActions(this));

    if (buildWrappers != null)
      for (BuildWrapper step : buildWrappers) r.addAll(step.getProjectActions(this));

    return r;
  }