@Override protected void updateTransientActions(){ super.updateTransientActions(); if(getActiveConfigurations() !=null){ // update all transient actions in configurations too. for(MatrixConfiguration configuration: getActiveConfigurations()){ configuration.updateTransientActions(); } } }
/** * Returns true if this configuration is a configuration currently in use * today (as opposed to the ones that are there only to keep the past * record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
/** * {@link MatrixProject} is relevant with all the labels its configurations are relevant. */ @Override public Set<Label> getRelevantLabels() { Set<Label> r = new HashSet<Label>(); for (MatrixConfiguration c : getActiveConfigurations()) r.add(c.getAssignedLabel()); return r; }
/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
/** * Returns true if this configuration is a configuration * currently in use today (as opposed to the ones that are * there only to keep the past record.) * * @see MatrixProject#getActiveConfigurations() */ public boolean isActiveConfiguration() { return getParent().getActiveConfigurations().contains(this); }
@Override public void delete() throws IOException, InterruptedException{ //do not delete active configuration if(getParent().getActiveConfigurations().contains(this)) return; super.delete(); }
@Override public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { ContextMenu menu = new ContextMenu(); for (MatrixConfiguration c : getActiveConfigurations()) { menu.add(c); } return menu; }
@Override public Collection<? extends Action> getProjectActions(AbstractProject<?, ?> project) { if (this.reportTargets.isEmpty()) { return Collections.emptyList(); } else { ArrayList<Action> actions = new ArrayList<Action>(); for (HtmlPublisherTarget target : this.reportTargets) { actions.add(target.getProjectAction(project)); if (project instanceof MatrixProject && ((MatrixProject) project).getActiveConfigurations() != null){ for (MatrixConfiguration mc : ((MatrixProject) project).getActiveConfigurations()){ try { mc.onLoad(mc.getParent(), mc.getName()); } catch (IOException e){ //Could not reload the configuration. } } } } return actions; } }
categoryTasks.add((Queue.Task) p); if (p instanceof MatrixProject && t.isThrottleMatrixConfigurations()) { for (MatrixConfiguration mc : ((MatrixProject) p).getActiveConfigurations()) { categoryTasks.add(mc);
/** * True if this build didn't do a full build and it is depending on the result of the previous build. */ public boolean isPartial() { for(MatrixConfiguration c : getParent().getActiveConfigurations()) { MatrixRun b = c.getNearestOldBuild(getNumber()); if (b != null && b.getNumber()!=getNumber()) return true; } return false; }
/** * @return True if another {@link MatrixBuild} build (passed as a parameter) depends on this build. * @since 1.481 */ public boolean isLinkedBy(MatrixBuild b) { if(null == b) return false; for(MatrixConfiguration c : b.getParent().getActiveConfigurations()) { MatrixRun r = c.getNearestOldBuild(b.getNumber()); if (r != null && r.getNumber()==getNumber()) return true; } return false; }
Collection<? extends MatrixConfiguration> configs = ((MatrixProject) job).getActiveConfigurations(); for (MatrixConfiguration config : configs) { trigger.getRemoteRepository()
protected boolean show() { // Check if this is a matrix project MatrixProject matrix = isMatrix(); // Actually check if (matrix == null) // Check if some report exists for the last successful build return hasReports(CoveragePublisher.getHtmlDir(project.getLastSuccessfulBuild())); // Go threw the configurations for (MatrixConfiguration configuration : matrix.getActiveConfigurations()) // Check if this configuration has a report if (hasReports(CoveragePublisher.getHtmlDir(configuration.getLastSuccessfulBuild()))) // If yes no need to go further return true; // No report found return false; }
/** * {@inheritDoc} */ public void buildDependencyGraph(AbstractProject owner, DependencyGraph graph) { ItemGroup context = owner.getParent(); for (AbstractProject downstream : getChildProjects(context)) { graph.addDependency(new DownstreamDependency(owner, downstream, this)); } // workaround for problems with Matrix projects // see https://issues.jenkins-ci.org/browse/HUDSON-5508 if (this.matrixTrigger != null && (this.matrixTrigger == MatrixTrigger.ONLY_CONFIGURATIONS || this.matrixTrigger == MatrixTrigger.BOTH)) { if (owner instanceof MatrixProject) { MatrixProject proj = (MatrixProject) owner; Collection<MatrixConfiguration> activeConfigurations = proj.getActiveConfigurations(); for (MatrixConfiguration conf : activeConfigurations) { for (AbstractProject downstream : getChildProjects(context)) { graph.addDependency(new DownstreamDependency(conf, downstream, this)); } } } } }
Collection<MatrixConfiguration> activeConfigurations = p.getActiveConfigurations(); final int n = getNumber();
Collection<MatrixConfiguration> activeConfigurations = p.getActiveConfigurations(); final int n = getNumber();
for (MatrixConfiguration child : ((MatrixProject) source).getActiveConfigurations()) { ProjectReferenceDTO ref = new ProjectReferenceDTO(); ref.setId(this.jobUuid.get(child).toString());
totalBuilds = ((MatrixProject) build.getParent().getParent()).getActiveConfigurations().size(); if (isDeployArtifacts()) { validateCombinationFilter(build, listener, getArtifactoryCombinationFilter());