Copy Team CLI Plugin

Adds copy-team CLI command.

License

License

Categories

Categories

Hudson Build Tools Continuous Integration and Continuous Delivery CLI User Interface
GroupId

GroupId

org.hudsonci.plugins
ArtifactId

ArtifactId

copy-team-cli
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

hpi
Description

Description

Copy Team CLI Plugin
Adds copy-team CLI command.
Project Organization

Project Organization

Hudson
Source Code Management

Source Code Management

https://github.com/hudson3-plugins/copy-team-cli-plugin.git

Download copy-team-cli

Dependencies

provided (2)

Group / Artifact Type Version
org.eclipse.hudson : hudson-core jar 3.2.0-RC1
javax.servlet : servlet-api jar 2.4

test (7)

Group / Artifact Type Version
org.eclipse.hudson : hudson-war war 3.2.0-RC1
org.eclipse.hudson : hudson-test-framework jar 3.2.0-RC1
junit : junit jar 4.8.1
org.powermock : powermock-module-junit4 Optional jar 1.4.10
org.powermock : powermock-api-easymock Optional jar 1.4.10
org.easymock : easymock Optional jar 3.0
org.mockito : mockito-core Optional jar 1.8.5

Project Modules

There are no modules declared in this project.

copy-team-cli-plugin

Create a new team and copy all jobs in an existing team to it.

java -jar hudson-cli.jar copy-team args...
Copy a team and its jobs to a newly created team
 FROM                : Team name to copy (required)
 TO                  : Team name to create (required)
 EMAIL               : Email recipients separated by commas (optional); if not
                       specified, recipients will be removed from the copied team.
 -n or --nodes       : Optional. Values may be:
                       *move* - Move nodes owned by 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).
 -v or --view        : Optional. Values may be:
                       move - Move views owned by 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).

The FROM team must exist and the TO team must not.

copy-team assumes the email recipients in the FROM team are not relevant to the new team and, by default, removes them from the copied jobs. If the optional EMAIL parameter is specified, it will replace any existing email recipients in copied jobs. If this is not the desired effect, EMAIL should be omitted and the new job recipients set by hand.

All jobs in the FROM team are copied to the TO team. Jobs retain their original names with new team qualification.

In copied jobs, job references in build triggers, cascading parents and children that refer to jobs in the FROM team are modified to refer to the same jobs in the TO team. Job references outside the FROM team are not changed.

NB: Email addresses and job references are only looked for in well-known locations. Addresses or references added by plugins are not affected.

For --nodes and --views, any visibility configured in the from team for the node or view is lost in a move and retained in a visible.

org.hudsonci.plugins

Hudson CI Server 3.x plugins

Versions

Version
1.2
1.1
1.0