mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
added a method to expose this. Motivated by the conversation around ruby-runtime with cowboyd
This commit is contained in:
1 parent
bfdfe527c6
commit
8cd23888b4
1 file changed
+13
@@ -852,6 +852,19 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
|
||||
return new EnvironmentList(buildEnvironments==null ? Collections.<Environment>emptyList() : ImmutableList.copyOf(buildEnvironments));
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows you to contribute an environment without going through {@link BuildWrapper}.
|
||||
* <p>
|
||||
* For concurrency, this method is only designed to be called from the executor that's doing a build,
|
||||
* during the build.
|
||||
*
|
||||
* @since 1.444
|
||||
*/
|
||||
public void addEnvironment(Environment env) {
|
||||
if (env!=null)
|
||||
buildEnvironments.add(env);
|
||||
}
|
||||
|
||||
public Calendar due() {
|
||||
return getTimestamp();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user