/*package*/ FilteredChangeLogSet(MavenBuild build) { super(build); MavenModuleSetBuild parentBuild = build.getParentBuild(); if(parentBuild==null) { core = ChangeLogSet.createEmpty(build); master = Collections.emptyList(); } else { core = parentBuild.getChangeSet(); master = parentBuild.getChangeSetFor(build.getParent()); } }
public Map<String,String> call(MavenBuild build) throws IOException, InterruptedException { Map<String,String> r = new HashMap<String, String>(); r.put("Hudson-Build-Number",String.valueOf(build.getNumber())); r.put("Hudson-Project",build.getParent().getParent().getName()); r.put("Hudson-Version",Hudson.VERSION); return r; } });
/*package*/ FilteredChangeLogSet(MavenBuild build) { super(build); MavenModuleSetBuild parentBuild = build.getParentBuild(); if(parentBuild==null) { core = ChangeLogSet.createEmpty(build); master = Collections.emptyList(); } else { core = parentBuild.getChangeSet(); master = parentBuild.getChangeSetFor(build.getParent()); } }
public Map<String,String> call(MavenBuild build) throws IOException, InterruptedException { Map<String,String> r = new HashMap<>(); // leave Hudson for backward comp r.put("Hudson-Build-Number",String.valueOf(build.getNumber())); r.put("Hudson-Project",build.getParent().getParent().getName()); r.put("Hudson-Version", Jenkins.VERSION); r.put("Jenkins-Build-Number",String.valueOf(build.getNumber())); r.put("Jenkins-Project",build.getParent().getParent().getName()); r.put("Jenkins-Version", Jenkins.VERSION); return r; } }
public FilePath getProjectRootDir() { return new FilePath(MavenBuild.this.getParent().getRootDir()); }
public boolean isArchivingDisabled() { return MavenBuild.this.getParent().getParent().isArchivingDisabled(); }
public boolean isSiteArchivingDisabled() { return MavenBuild.this.getParent().getParent().isSiteArchivingDisabled(); }
public FilePath getProjectRootDir() { return new FilePath(MavenBuild.this.getParent().getRootDir()); }
public boolean isArchivingDisabled() { return MavenBuild.this.getParent().getParent().isArchivingDisabled(); }
/** * Gets the {@link MavenModuleSetBuild} that has the same build number. * * @return * null if no such build exists, which happens when the module build * is manually triggered. * @see #getModuleSetBuild() */ public @CheckForNull MavenModuleSetBuild getParentBuild() { return getParent().getParent().getBuildByNumber(getNumber()); }
/** * Gets the "governing" {@link MavenModuleSet} that has set * the workspace for this build. * * @return * null if no such build exists, which happens if the build * is manually removed. * @see #getParentBuild() */ public @CheckForNull MavenModuleSetBuild getModuleSetBuild() { return getParent().getParent().getNearestOldBuild(getNumber()); }
private Result computeResult() { Result r = super.getResult(); if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("Current result is: " + r); } for (MavenBuild b : getModuleLastBuilds().values()) { Result br = b.getResult(); if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("Module result is: " + br + " for " + b.getParent().getGroupId() + ":" + b.getParent().getArtifactId()); } if (r == null) { r = br; } else if (br == Result.NOT_BUILT || br == Result.ABORTED) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("Result not updated: " + r); } continue; // UGLY: when computing combined status, ignore the modules that were not built } else if (br != null) { r = r.combine(br); } if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.finest("New result is: " + r); } } return r; }
/** * Gets the {@link MavenModuleSetBuild} that has the same build number. * * @return * null if no such build exists, which happens when the module build * is manually triggered. * @see #getModuleSetBuild() */ public MavenModuleSetBuild getParentBuild() { return getParent().getParent().getBuildByNumber(getNumber()); }
/** * Gets the "governing" {@link MavenModuleSet} that has set * the workspace for this build. * * @return * null if no such build exists, which happens if the build * is manually removed. * @see #getParentBuild() */ public MavenModuleSetBuild getModuleSetBuild() { return getParent().getParent().getNearestOldBuild(getNumber()); }
public FilePath getModuleSetRootDir() { return new FilePath(MavenBuild.this.getParent().getParent().getRootDir()); }
@Override public String getDisplayName() { StaplerRequest req = Stapler.getCurrentRequest(); if(req!=null) { List<Ancestor> ancs = req.getAncestors(); for( int i=1; i<ancs.size(); i++) { if(ancs.get(i).getObject()==this) { if(ancs.get(i-1).getObject() instanceof MavenModuleSetBuild) { // if under MavenModuleSetBuild, display the module name return getParent().getDisplayName(); } } } } return super.getDisplayName(); }
public FilePath getModuleSetRootDir() { return new FilePath(MavenBuild.this.getParent().getParent().getRootDir()); }
@Override public String getDisplayName() { StaplerRequest req = Stapler.getCurrentRequest(); if(req!=null) { List<Ancestor> ancs = req.getAncestors(); for( int i=1; i<ancs.size(); i++) { if(ancs.get(i).getObject()==this) { if(ancs.get(i-1).getObject() instanceof MavenModuleSetBuild) { // if under MavenModuleSetBuild, display the module name return getParent().getDisplayName(); } } } } return super.getDisplayName(); }
moduleSetBuild.getActions().add(action); action.addUnbuiltModule(getParent().getModuleName()); UnbuiltModuleAction unbuiltModuleAction = previousParentBuild.getAction(UnbuiltModuleAction.class); if (unbuiltModuleAction != null) { unbuiltModuleAction.removeUnbuildModule(getParent().getModuleName()); try { previousParentBuild.save(); moduleSetBuild.getActions().add(action); action.addUnbuiltModule(getParent().getModuleName());