public AbstractTestResultAction<?> getTestResultAction() { MavenModuleSetBuild b = getLastBuild(); return b != null ? b.getAction(AbstractTestResultAction.class) : null; }
/** * Check the location of the POM, alternate settings file, etc - any file. */ public FormValidation doCheckFileInWorkspace(@QueryParameter String value) throws IOException, ServletException { MavenModuleSetBuild lb = getLastBuild(); if (lb!=null) { FilePath ws = lb.getModuleRoot(); if(ws!=null) return ws.validateRelativePath(value,true,true); } return FormValidation.ok(); }
/** * Check the location of the POM, alternate settings file, etc - any file. */ public FormValidation doCheckFileInWorkspace(@QueryParameter String value) throws IOException, ServletException { MavenModuleSetBuild lb = getLastBuild(); if (lb!=null) { FilePath ws = lb.getModuleRoot(); if(ws!=null) return ws.validateRelativePath(value,true,true); } return FormValidation.ok(); }
/** * Check that the provided file is a relative path. And check that it exists, just in case. */ public FormValidation doCheckFileRelative(@QueryParameter String value) throws IOException, ServletException { String v = fixEmpty(value); if ((v == null) || (v.length() == 0)) { // Null values are allowed. return FormValidation.ok(); } if ((v.startsWith("/")) || (v.startsWith("\\")) || (v.matches("^\\w\\:\\\\.*"))) { return FormValidation.error("Alternate settings file must be a relative path."); } MavenModuleSetBuild lb = getLastBuild(); if (lb!=null) { FilePath ws = lb.getWorkspace(); if(ws!=null) return ws.validateRelativePath(value,true,true); } return FormValidation.ok(); }
this.workspaceProper = project.getLastBuild().getWorkspace().getRemote(); if (project.usesPrivateRepository()) { this.privateRepository = project.getLastBuild().getWorkspace().child(".repository").getRemote(); } else { this.privateRepository = null; project.getScm().getModuleRoot( project.getLastBuild().getWorkspace(), project.getLastBuild() ).getRemote();
project.getScm().getModuleRoot( build.getWorkspace(), project.getLastBuild() ).getRemote();