com.sonyericsson.hudson.plugins.metadata.cli
Class UpdateMetadataCommand

java.lang.Object
  extended by hudson.cli.CLICommand
      extended by com.sonyericsson.hudson.plugins.metadata.cli.UpdateMetadataCommand
All Implemented Interfaces:
hudson.ExtensionPoint, Cloneable

@Extension
public class UpdateMetadataCommand
extends hudson.cli.CLICommand

Command for adding/updating metadata onto stuff.

Author:
Robert Sandell <robert.sandell@sonyericsson.com>

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 Integer build
          The build argument.
 String data
          The data argument.
 String job
          The job argument.
 String node
          The node argument.
 boolean replace
          The replace argument.
 
Fields inherited from class hudson.cli.CLICommand
channel, locale, stderr, stdin, stdout, TRANSPORT_AUTHENTICATION
 
Constructor Summary
UpdateMetadataCommand()
           
 
Method Summary
 String getShortDescription()
           
protected  int run()
           
 
Methods inherited from class hudson.cli.CLICommand
all, checkChannel, clone, createClone, getClientCharset, getClientEnvironmentVariable, getClientSystemProperty, getCurrent, getName, getTransportAuthentication, loadStoredAuthentication, main, printUsage, printUsageSummary, registerOptionHandlers, setTransportAuth, shouldPerformAuthentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

job

public String job
The job argument. The name of the job/project to add data to. If job is not provided node must be.


build

public Integer build
The build argument. The build number of the job to add data to. If build is provided job must be.


node

public String node
The node argument. The name of the node/computer to add data to. If node is not provided job must be.


replace

public boolean replace
The replace argument. If replace should be used instead of add.


data

public String data
The data argument. File or URL to the document containing the data to add. If no data argument is provided it is assumed to come on CLICommand.stdin.

Constructor Detail

UpdateMetadataCommand

public UpdateMetadataCommand()
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-2013. All Rights Reserved.