hudson.scm.util
Class RevisionUtil
java.lang.Object
hudson.scm.util.RevisionUtil
public final class RevisionUtil
- extends Object
Class contains help methods to process subversion revisions.
Copyright (C) 2011 Hudson-CI.org
Date: 4/19/11
- Author:
- Anton Kozak
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AT_SYMBOL
public static final char AT_SYMBOL
- See Also:
- Constant Field Values
getRevision
public static org.tmatesoft.svn.core.wc.SVNRevision getRevision(SubversionSCM.ModuleLocation location,
RevisionParameterAction revisionParameterAction,
SubversionSCM.RevisionPolicy revisionPolicy,
Date queueTime,
Date buildTime)
- Returns
SVNRevision based on the following logic:
- if repository URL is
url@rev then this method returns specified revision.
- if the build is parameterized and it contains {RevisionParameterAction} mapped to specified repository URL then
SvnInfo.revision will be used
- if
QUEUE_TIME policy was chosen then revision created base on build scheduled time will be used
- if
BUILD_TIME policy was chosen then revision created base on build run time will be used
- if
HEAD policy was chosen then HEAD revision will be used
- Parameters:
location - module location.revisionPolicy - global revision policy.queueTime - when the build is scheduled.buildTime - when the build is started.revisionParameterAction - revisionParameterAction.
- Returns:
SVNRevision.
Copyright © 2004-2012 Hudson. All Rights Reserved.