Class ManualCondition.Badge
- java.lang.Object
-
- hudson.plugins.promoted_builds.PromotionBadge
-
- hudson.plugins.promoted_builds.conditions.ManualCondition.Badge
-
- Enclosing class:
- ManualCondition
public static final class ManualCondition.Badge extends PromotionBadge
-
-
Field Summary
Fields Modifier and Type Field Description String
authenticationName
-
Constructor Summary
Constructors Constructor Description Badge(List<ParameterValue> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildEnvVars(AbstractBuild<?,?> build, EnvVars env)
Called byStatus
to allow promotion badges to contribute environment variables.List<ParameterValue>
getParameterValues()
String
getUserId()
Gets ID of the user, who has promoted the build.String
getUserName()
Gets name of the user, who has promoted the build.
-
-
-
Field Detail
-
authenticationName
public String authenticationName
-
-
Constructor Detail
-
Badge
public Badge(List<ParameterValue> values)
-
-
Method Detail
-
getUserName
@Exported @NonNull public String getUserName()
Gets name of the user, who has promoted the build.- Returns:
- User name or
ManualCondition.MISSING_USER_ID_DISPLAY_STRING
if the user cannot be determined
-
getUserId
@Exported public String getUserId()
Gets ID of the user, who has promoted the build.- Returns:
- User id or
ManualCondition.MISSING_USER_ID_DISPLAY_STRING
if the user cannot be determined
-
getParameterValues
@Exported public List<ParameterValue> getParameterValues()
-
buildEnvVars
public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env)
Description copied from class:PromotionBadge
Called byStatus
to allow promotion badges to contribute environment variables.- Overrides:
buildEnvVars
in classPromotionBadge
- Parameters:
build
- The calling build. Never null.env
- Environment variables should be added to this map.
-
-