Stores the list of admins for a pipeline.
def admins = new PipelineAdmins()
// add some admins
admins.add('adminA', 'admin-b', 'another-admin')
// show "We have 3 admins."
echo "We have ${admins.size()} admins."
// show admin name
echo "another-admin's name is ${admins.get('another-admin').name}."
// get email list
def emailTo = admins.getEmailList()
// emailTo should be a string similar to:
// "adminA@gmail.com,admin-b@hotmail.com,another-admin@ibm.com"
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
add(java.lang.String... admins)Define admin users to the pipeline. |
|
PipelineAdmin |
get(java.lang.String id)Get a particular admin from the User ID. |
|
java.lang.String |
getCCList()Gets the admin emails as a CC list. |
|
java.lang.String |
getCommaSeparated()Gets the admin User IDs as a comma separated list. |
|
java.lang.String |
getEmailList()Gets the admin emails as a TO list. |
|
int |
getSize()Gets the number of admins defined. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Define admin users to the pipeline.
admins - A list of user ids to add to the pipeline.Get a particular admin from the User ID.
id - The User ID to lookupGets the admin emails as a CC list.
Gets the admin User IDs as a comma separated list.
This list can be used in an input step
Gets the admin emails as a TO list.
Gets the number of admins defined.