public MatrixRun getRun() { return MatrixBuild.this.getRun(combination); }
public MatrixRun getRun() { return MatrixBuild.this.getRun(combination); }
public MatrixRun getRun() { return MatrixBuild.this.getRun(combination); }
public MatrixRun getRun() { return MatrixBuild.this.getRun(combination); }
public MatrixRun getRun() { return MatrixBuild.this.getRun(combination); }
@Override public AbstractBuild<?, ?> resolveChild(Child child) { MatrixBuild b = (MatrixBuild) owner; return b.getRun(Combination.fromString(child.name)); }
@Override public AbstractBuild<?,?> resolveChild(Child child) { MatrixBuild b = (MatrixBuild)owner; return b.getRun(Combination.fromString(child.name)); }
@Override public AbstractBuild<?,?> resolveChild(Child child) { MatrixBuild b = (MatrixBuild)owner; return b.getRun(Combination.fromString(child.name)); }
@Override public AbstractBuild<?,?> resolveChild(Child child) { MatrixBuild b = (MatrixBuild)owner; return b.getRun(Combination.fromString(child.name)); }
/** * Gets the {@link #runs}, if they haven't been loaded yet they will. * * @return the runs. */ private synchronized List<MatrixRun> getRuns() { if (runIds != null && build != null && runs == null) { runs = new LinkedList<MatrixRun>(); for (String id : runIds) { Combination combination = Combination.fromString(id); if (combination != null) { MatrixRun run = build.getRun(combination); if (run != null) { runs.add(run); } } } } return runs; }
@Override public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { try { MatrixRun item = getRun(Combination.fromString(token)); if (item != null) { return item; } } catch (IllegalArgumentException _) { // failed to parse the token as Combination. Must be something else } return super.getDynamic(token, req, rsp); }
@Override public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { try { MatrixRun item = getRun(Combination.fromString(token)); if (item != null) { return item; } } catch (IllegalArgumentException _) { // failed to parse the token as Combination. Must be something else } return super.getDynamic(token, req, rsp); }
@Override public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { try { MatrixRun item = getRun(Combination.fromString(token)); if (item != null) { return item; } } catch (IllegalArgumentException _) { // failed to parse the token as Combination. Must be something else } return super.getDynamic(token, req, rsp); }
@Override public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { try { MatrixRun item = getRun(Combination.fromString(token)); if (item != null) { return item; } } catch (IllegalArgumentException _) { // failed to parse the token as Combination. Must be something else } return super.getDynamic(token, req, rsp); }
@Override public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) { try { MatrixRun item = getRun(Combination.fromString(token)); if(item!=null) { if (item.getNumber()==this.getNumber()) return item; else { // redirect the user to the correct URL String url = Functions.joinPath(item.getUrl(), req.getRestOfPath()); String qs = req.getQueryString(); if (qs!=null) url+='?'+qs; throw HttpResponses.redirectViaContextPath(url); } } } catch (IllegalArgumentException ignored) { // failed to parse the token as Combination. Must be something else } return super.getDynamic(token,req,rsp); }