|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectorg.jenkins_ci.plugins.flexible_publish.JobUpdater
public class JobUpdater
Utilities for the script console
| コンストラクタの概要 | |
|---|---|
JobUpdater()
|
|
| メソッドの概要 | |
|---|---|
static String |
list(hudson.model.AbstractProject<?,?> project)
List the publishers that are enabled on the project, and that can be moved into the Flexible publish
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
list job
// Or, if you like doing it the hard way ... |
static String |
list(hudson.model.AbstractProject<?,?> project,
boolean listCanMove)
|
static String |
listCanMove(hudson.model.AbstractProject<?,?> project)
List the publishers that are enabled on the project, and that can be moved into the Flexible publish
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
listCanMove job
|
static String |
listCannotMove(hudson.model.AbstractProject<?,?> project)
List the publishers that are enabled on the project, and but cannot be moved into the Flexible publish
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
listCannotMove job
// Or, if you like doing it the hard way ... |
static boolean |
moveAllPublishers(hudson.model.AbstractProject<?,?> project)
Move all publishers that are "allowed" to be moved into the Flexible publish Only use this method if you really know what you're doing - or don't care about the consequences For those that like to live on the edge! |
static boolean |
movePublisher(hudson.model.AbstractProject<?,?> project,
String publisherName)
Move a publisher from the Post-build Actions and into the Flexible publish publisher For a freestyle project called 'xxx', to move the 'Archive the artifacts' step:
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
movePublisher job, 'archive the artifacts'
Once executed, go to the configure page to check that everything looks OK, then save the configuration |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public JobUpdater()
| メソッドの詳細 |
|---|
public static boolean movePublisher(hudson.model.AbstractProject<?,?> project,
String publisherName)
throws IOException
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
movePublisher job, 'archive the artifacts'
Once executed, go to the configure page to check that everything looks OK, then save the configuration
IOException
public static boolean moveAllPublishers(hudson.model.AbstractProject<?,?> project)
throws IOException
IOExceptionpublic static String list(hudson.model.AbstractProject<?,?> project)
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
list job
// Or, if you like doing it the hard way ...
org.jenkins_ci.plugins.flexible_publish.JobUpdater.list(hudson.model.Hudson.instance.getItem('xxx'))
public static String listCanMove(hudson.model.AbstractProject<?,?> project)
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
listCanMove job
public static String listCannotMove(hudson.model.AbstractProject<?,?> project)
import static org.jenkins_ci.plugins.flexible_publish.JobUpdater.*
def job = hudson.model.Hudson.instance.getItem('xxx')
listCannotMove job
// Or, if you like doing it the hard way ...
org.jenkins_ci.plugins.flexible_publish.JobUpdater.list(hudson.model.Hudson.instance.getItem('xxx'))
public static String list(hudson.model.AbstractProject<?,?> project,
boolean listCanMove)
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||