Examples of copyRecursiveTo()


Examples of hudson.FilePath.copyRecursiveTo()

        if (Computer.currentComputer() instanceof SlaveComputer) {
            listener.getLogger().println("[CucumberReportPublisher] copying all json files from slave: " + workspaceJsonReportDirectory.getRemote() + " to master reports directory: " + targetBuildDirectory);
        } else {
            listener.getLogger().println("[CucumberReportPublisher] copying all json files from: " + workspaceJsonReportDirectory.getRemote() + " to reports directory: " + targetBuildDirectory);
        }
        workspaceJsonReportDirectory.copyRecursiveTo("**/*.json", new FilePath(targetBuildDirectory));

        // generate the reports from the targetBuildDirectory
    Result result = Result.NOT_BUILT;
        String[] jsonReportFiles = findJsonFiles(targetBuildDirectory);
        if (jsonReportFiles.length != 0) {
View Full Code Here

Examples of hudson.FilePath.copyRecursiveTo()

            if (ws==null) { // #3330: slave down?
                return true;
            }

            String artifacts = build.getEnvironment(listener).expand(this.artifacts);
            if(ws.copyRecursiveTo(artifacts,excludes,new FilePath(dir))==0) {
                if(build.getResult().isBetterOrEqualTo(Result.UNSTABLE)) {
                    // If the build failed, don't complain that there was no matching artifact.
                    // The build probably didn't even get to the point where it produces artifacts.
                    listenerWarnOrError(listener, Messages.ArtifactArchiver_NoMatchFound(artifacts));
                    String msg = null;
View Full Code Here

Examples of hudson.FilePath.copyRecursiveTo()

    }

    private void copySourceFilesToModuleBuildFolder(final MavenBuild newBuild) {
        FilePath filePath = new FilePath(new File(newBuild.getRootDir(), AbstractAnnotation.WORKSPACE_FILES));
        try {
            filePath.copyRecursiveTo("*.tmp", new FilePath(new File(getOwner().getRootDir(), AbstractAnnotation.WORKSPACE_FILES)));
        }
        catch (IOException exception) {
            Logger.getLogger(getClass().getName()).log(Level.SEVERE, "Can't copy workspace files: ", exception);
        }
        catch (InterruptedException exception) {
View Full Code Here

Examples of hudson.FilePath.copyRecursiveTo()

            if (ws == null) { // #3330: slave down?
                return true;
            }

            String artifacts = build.getEnvironment(listener).expand(this.artifacts);
            if (ws.copyRecursiveTo(artifacts, excludes, new FilePath(dir), compressionType) == 0) {
                if (build.getResult().isBetterOrEqualTo(Result.UNSTABLE)) {
                    // If the build failed, don't complain that there was no matching artifact.
                    // The build probably didn't even get to the point where it produces artifacts.
                    listenerWarnOrError(listener, Messages.ArtifactArchiver_NoMatchFound(artifacts));
                    String msg = null;
View Full Code Here

Examples of hudson.FilePath.copyRecursiveTo()

    FilePath unixVmPath = this.getUnixVmPath(moduleRoot, logger);
    FilePath windowsVmPath = this.getWindowsVmPath(moduleRoot, logger);

    macVmPath.copyRecursiveTo(appFolder);
    unixVmPath.copyRecursiveTo(appFolder.child("Contents").child("Linux"));
    windowsVmPath.copyRecursiveTo(appFolder);

    FilePath splashBmp = appFolder.child("splash.bmp");
    if (splashBmp.exists()) {
      splashBmp.delete();
    }
View Full Code Here

Examples of hudson.FilePath.copyRecursiveTo()

    FilePath unixVmPath = this.getUnixVmPath(moduleRoot, logger);
    FilePath windowsVmPath = this.getWindowsVmPath(moduleRoot);

    macVmPath.copyRecursiveTo(appFolder);
    unixVmPath.copyRecursiveTo(appFolder.child("Contents").child("Linux"));
    windowsVmPath.copyRecursiveTo(appFolder);

    FilePath splashBmp = appFolder.child("splash.bmp");
    if (splashBmp.exists()) {
      splashBmp.delete();
    }
View Full Code Here

Examples of hudson.FilePath.copyRecursiveTo()

    FilePath unixVmPath = this.getUnixVmPath(moduleRoot, logger);
    FilePath windowsVmPath = this.getWindowsVmPath(moduleRoot, logger);

    macVmPath.copyRecursiveTo(appFolder);
    unixVmPath.copyRecursiveTo(appFolder.child("Contents").child("Linux"));
    windowsVmPath.copyRecursiveTo(appFolder);

    FilePath splashBmp = appFolder.child("splash.bmp");
    if (splashBmp.exists()) {
      splashBmp.delete();
    }
View Full Code Here

Examples of hudson.FilePath.copyRecursiveTo()

    FilePath unixVmPath = this.getUnixVmPath(moduleRoot, logger);
    FilePath windowsVmPath = this.getWindowsVmPath(moduleRoot);

    macVmPath.copyRecursiveTo(appFolder);
    unixVmPath.copyRecursiveTo(appFolder.child("Contents").child("Linux"));
    windowsVmPath.copyRecursiveTo(appFolder);

    FilePath splashBmp = appFolder.child("splash.bmp");
    if (splashBmp.exists()) {
      splashBmp.delete();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.