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
ConstructorsConstructorDescriptionConstructor, which uses the currentUser.UserIdCause(String userId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanOne-line human-readable text of the cause.inthashCode()voidprint(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.nullif the user is unknown.- Since:
- 2.96
-
-
Method Details
-
getUserId
-
getUserName
-
getUserUrl
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @CheckForNull public String getUserUrl() -
getUserAvatar
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @CheckForNull public String getUserAvatar() -
getShortDescription
Description copied from class:CauseOne-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.jellyview for your subclass. See the documentation.- Specified by:
getShortDescriptionin classCause
-
print
Description copied from class:CauseReport a line to the listener about this cause. -
equals
-
hashCode
public int hashCode()
-