Java 类hudson.model.Environment 实例源码

项目:DotCi    文件:BuildEnvironment.java   
public boolean setupWrappers(final List<BuildWrapper> wrappers) throws IOException, InterruptedException {
    for (final BuildWrapper w : wrappers) {
        final Environment e = w.setUp((AbstractBuild<?, ?>) this.build, this.launcher, this.listener);
        if (e == null) {
            return false;
        }
        final List<Environment> buildEnvironments = getBuildEnvironments();
        buildEnvironments.add(e);
    }

    return true;

}
项目:DotCi    文件:BuildEnvironment.java   
public boolean tearDownBuildEnvironments(final BuildListener listener) throws IOException, InterruptedException {
    boolean failed = false;
    final List<Environment> buildEnvironments = getBuildEnvironments();
    for (int i = buildEnvironments.size() - 1; i >= 0; i--) {
        if (!buildEnvironments.get(i).tearDown(this.build, listener)) {
            failed = true;
        }
    }
    return failed;
}
项目:jenkins.py    文件:RunListenerPW.java   
@Override
public Environment setUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, RunnerAbortedException {
    initPython();
    if (pexec.isImplemented(3)) {
        return (Environment) pexec.execPython("set_up_environment", build, launcher, listener);
    } else {
        return super.setUpEnvironment(build, launcher, listener);
    }
}
项目:jenkins.py    文件:NodePropertyPW.java   
@Override
public Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
    initPython();
    if (pexec.isImplemented(4)) {
        return (Environment) pexec.execPython("set_up", build, launcher, listener);
    } else {
        return super.setUp(build, launcher, listener);
    }
}
项目:DotCi    文件:BuildEnvironment.java   
private List<Environment> getBuildEnvironments() {
    return this.build.getEnvironments();
}
项目:jenkins.py    文件:RunListenerPW.java   
public Environment superSetUpEnvironment(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException, RunnerAbortedException {
    return super.setUpEnvironment(build, launcher, listener);
}
项目:jenkins.py    文件:NodePropertyPW.java   
public Environment superSetUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException {
    return super.setUp(build, launcher, listener);
}