提交 8738451d 编写于 作者: K Kohsuke Kawaguchi

exposed #buildEnvironments

上级 71cbf93a
......@@ -23,6 +23,7 @@
*/
package hudson.model;
import com.google.common.collect.ImmutableList;
import hudson.AbortException;
import hudson.EnvVars;
import hudson.Functions;
......@@ -837,6 +838,16 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
return env;
}
/**
* During the build, expose the environments contributed by {@link BuildWrapper}s and others.
*
* @return can be empty list, but never null. Immutable.
* @since 1.437
*/
public List<Environment> getEnvironments() {
return buildEnvironments==null ? Collections.<Environment>emptyList() : ImmutableList.copyOf(buildEnvironments);
}
public Calendar due() {
return getTimestamp();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册