org.hudsonci.plugins.team.cli
Class CopyTeamCommand

java.lang.Object
  extended by hudson.cli.CLICommand
      extended by org.hudsonci.plugins.team.cli.CopyTeamCommand
All Implemented Interfaces:
hudson.ExtensionPoint, Cloneable

@Extension
public class CopyTeamCommand
extends hudson.cli.CLICommand

Copy a team and its jobs from the command line. User must be sys admin.

EMAIL Email are replaced with contents of email argument.
 
   
     
       hudson-tasks-Mailer
       
         
           ${email}
           false
           false
         
         false
         true
       
     
 
If email not specified, replace entire entry with:
 
   hudson-tasks-Mailer
   
     false
     false
   
 
 
Cascading project names qualified with the old team name are requalified with the new team name. E.g., for copy-team Team1 TeamX
 
   Team1.JobBill2
   
     Team1.JobBill5
   
 
Is converted to:
 
   TeamX.JobBill2
   
     TeamX.JobBill5
   
 
If build trigger is specified, replace old team name with new team name, e.g.,
 
   
     
       hudson-tasks-BuildTrigger
       
         
           Team1.JobBill4, Team1.JobBill5
 
Is converted to:
 
   
     
       hudson-tasks-BuildTrigger
       
         
           TeamX.JobBill4, TeamX.JobBill5
 
Note that project names that are not qualified with the old team name are untouched.

-nodes option
Value Meaning
move Move nodes owned by the from team to the to team. visible Make nodes owned by the from team visible to the to team ignore Do nothing about nodes owned by the from team (default)

-views option

Value Meaning
move Move views owned by the from team to the to team. visible Make views owned by the from team visible to the to team ignore Do nothing about views owned by the from team (default)

Author:
Bob Foster

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 String email
           
 String from
           
 String nodes
           
 String to
           
 String views
           
 
Fields inherited from class hudson.cli.CLICommand
channel, locale, stderr, stdin, stdout, TRANSPORT_AUTHENTICATION
 
Constructor Summary
CopyTeamCommand()
           
 
Method Summary
 String getShortDescription()
           
protected  int run()
           
 
Methods inherited from class hudson.cli.CLICommand
all, clone, createClone, getClientEnvironmentVariable, getClientSystemProperty, getCurrent, getName, getTransportAuthentication, loadStoredAuthentication, main, printUsage, printUsageSummary, registerOptionHandlers, shouldPerformAuthentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

public String from

to

public String to

email

public String email

nodes

public String nodes

views

public String views
Constructor Detail

CopyTeamCommand

public CopyTeamCommand()
Method Detail

getShortDescription

public String getShortDescription()
Specified by:
getShortDescription in class hudson.cli.CLICommand

run

protected int run()
           throws Exception
Specified by:
run in class hudson.cli.CLICommand
Throws:
Exception


Copyright © 2004-2014 Hudson. All Rights Reserved.