mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
added a note about the invocation timing.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20095 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
4c129ad100
commit
6fae7a014a
1 file changed
+6
@@ -244,6 +244,12 @@ public abstract class SCM implements Describable<SCM>, ExtensionPoint {
|
||||
* <p>
|
||||
* This can be used to propagate information from SCM to builds
|
||||
* (for example, SVN revision number.)
|
||||
*
|
||||
* <p>
|
||||
* This method is invoked whenever someone does {@link AbstractBuild#getEnvironment(TaskListener)}, which
|
||||
* can be before/after your checkout method is invoked. So if you are going to provide information about
|
||||
* check out (like SVN revision number that was checked out), be prepared for the possibility that the
|
||||
* check out hasn't happened yet.
|
||||
*/
|
||||
public void buildEnvVars(AbstractBuild build, Map<String, String> env) {
|
||||
// default implementation is noop.
|
||||
|
||||
Reference in new issue
Block a user