Package hudson.model
Class Cause.UserIdCause
java.lang.Object
hudson.model.Cause
hudson.model.Cause.UserIdCause
- Direct Known Subclasses:
BuildCommand.CLICause
- Enclosing class:
- Cause
A build is started by an user action.
- Since:
- 1.427
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause
-
Constructor Summary
ConstructorDescriptionConstructor, which uses the currentUser
.UserIdCause
(String userId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
One-line human-readable text of the cause.int
hashCode()
void
print
(TaskListener listener) Report a line to the listener about this cause.
-
Constructor Details
-
UserIdCause
public UserIdCause()Constructor, which uses the currentUser
. -
UserIdCause
Constructor.- Parameters:
userId
- User ID.null
if the user is unknown.- Since:
- 2.96
-
-
Method Details
-
getUserId
-
getUserName
-
getUserUrl
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @CheckForNull public String getUserUrl() -
getShortDescription
Description copied from class:Cause
One-line human-readable text of the cause. Historically, this method's return value was used to render HTML on the UI as well. Since Jenkins 2.315 and 2.303.2, the return value is interpreted as text. To have rich HTML output on the UI, provide a customdescription.jelly
view for your subclass. See the documentation.- Specified by:
getShortDescription
in classCause
-
print
Description copied from class:Cause
Report a line to the listener about this cause. -
equals
-
hashCode
public int hashCode()
-