|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo
org.jvnet.hudson.maven.plugins.hudson.AddJobMojo
org.jvnet.hudson.maven.plugins.hudson.ReplaceJobMojo
public class ReplaceJobMojo
Goal which replaces a Hudson job's configuration
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo |
|---|
AbstractHudsonMojo.JobClosure, AbstractHudsonMojo.PluginType |
| Field Summary |
|---|
| Fields inherited from class org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo |
|---|
httpClient, hudsonURL, project, settings |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ReplaceJobMojo()
|
|
| Method Summary | |
|---|---|
protected java.net.URL |
createPostURL()
Create the POST URL for the configuration of an existing job. |
void |
execute()
Execute the mojo by calling AddJobMojo's execute method and then rebuilding the job. |
protected boolean |
jobExists()
Always returns false to ensure that the job is posted. |
| Methods inherited from class org.jvnet.hudson.maven.plugins.hudson.AddJobMojo |
|---|
createPayload, getJobName, postPayload |
| Methods inherited from class org.jvnet.hudson.maven.plugins.hudson.AbstractHudsonMojo |
|---|
configurePlugin, createHudsonURL, createJobBuildURL, createJobConfigURL, createJobListURL, createOrChange, createOrChange, doPost, doPost, findServer, forEachJob, getDocumentFromHudson, getJobList, loadJobConfig, rebuildJob, saveJobConfig, setupClient |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplaceJobMojo()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AddJobMojoorg.apache.maven.plugin.MojoExecutionException - if something goes wrong.AddJobMojo.execute()
protected java.net.URL createPostURL()
throws org.apache.maven.plugin.MojoExecutionException
createPostURL in class AddJobMojoorg.apache.maven.plugin.MojoExecutionException - if the URL is malformedAddJobMojo.createPostURL()protected boolean jobExists()
jobExists in class AddJobMojoAddJobMojo.jobExists()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||