org.hudsonci.utils.tasks
Class JobUuid
java.lang.Object
org.hudsonci.utils.tasks.JobUuid
public class JobUuid
- extends Object
Stores a UUID for each job. UUID is stored as uuid file
under the projects root directory. Value is cached once determined.
JobProperty mechanism is faulty at best, can not use it to store these
values. Project renames, where applicable, should also include
moving/renaming of the UUID file.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCODED_PREFIX
public static final String ENCODED_PREFIX
- See Also:
- Constant Field Values
ENCODED_SUFFIX
public static final String ENCODED_SUFFIX
- See Also:
- Constant Field Values
JobUuid
public JobUuid()
get
public static UUID get(Job<?,?> job)
- Get the UUID for the given Job. If the UUID is missing a new UUID is
created/persisted for the Job.
find
public static Job<?,?> find(UUID uuid)
- Find the Job with the given UUID, if it exists.
find
public static Job<?,?> find(String uuid)
encode
public static String encode(UUID uuid)
- Encodes the given UUID as UU-uuid-value-ID.
decode
public static UUID decode(String spec)
- See Also:
encode(UUID)
Copyright © 2004-2011 Hudson. All Rights Reserved.