hudson.plugins.promoted_builds
クラス PromotionProcess

java.lang.Object
  上位を拡張 hudson.model.AbstractModelObject
      上位を拡張 hudson.model.Actionable
          上位を拡張 hudson.model.AbstractItem
              上位を拡張 hudson.model.Job<P,R>
                  上位を拡張 hudson.model.AbstractProject<PromotionProcess,Promotion>
                      上位を拡張 hudson.plugins.promoted_builds.PromotionProcess
すべての実装されたインタフェース:
hudson.ExtensionPoint, hudson.model.BuildableItem, hudson.model.DescriptorByNameOwner, hudson.model.Item, hudson.model.ModelObject, hudson.model.PersistenceRoot, hudson.model.Queue.Task, hudson.model.ResourceActivity, hudson.model.Saveable, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, org.kohsuke.stapler.HttpDeletable

public final class PromotionProcess
extends hudson.model.AbstractProject<PromotionProcess,Promotion>
implements hudson.model.Saveable

A dummy AbstractProject to carry out promotion operations.

作成者:
Kohsuke Kawaguchi

入れ子のクラスの概要
 
クラス hudson.model.AbstractProject から継承された入れ子のクラス/インタフェース
hudson.model.AbstractProject.AbstractProjectDescriptor, hudson.model.AbstractProject.BecauseOfBuildInProgress, hudson.model.AbstractProject.BecauseOfUpstreamBuildInProgress
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
フィールドの概要
 hudson.util.DescribableList<PromotionCondition,PromotionConditionDescriptor> conditions
          PromotionConditions.
 java.lang.String icon
          The icon that represents this promotion process.
 
クラス hudson.model.AbstractProject から継承されたフィールド
ABORT, blockBuildWhenUpstreamBuilding, builds, disabled, transientActions, triggers
 
クラス hudson.model.Job から継承されたフィールド
HISTORY_ADAPTER, nextBuildNumber, properties
 
クラス hudson.model.AbstractItem から継承されたフィールド
description, name
 
インタフェース hudson.model.Saveable から継承されたフィールド
NOOP
 
インタフェース hudson.model.Item から継承されたフィールド
BUILD, CONFIGURE, CREATE, DELETE, EXTENDED_READ, PERMISSIONS, READ, WORKSPACE
 
メソッドの概要
 hudson.model.PermalinkProjectAction.Permalink asPermalink()
           
protected  void buildDependencyGraph(hudson.model.DependencyGraph graph)
           
 boolean considerPromotion(hudson.model.AbstractBuild<?,?> build)
          Checks if the build is promotable, and if so, promote it.
static java.util.List<hudson.model.Descriptor<? extends hudson.tasks.BuildStep>> getAll()
           
 hudson.model.Label getAssignedLabel()
           
protected  java.lang.Class<Promotion> getBuildClass()
           
 java.util.List<hudson.tasks.BuildStep> getBuildSteps()
           
 java.lang.String getCustomWorkspace()
          Gets the customWorkspace of the owner project.
 java.lang.String getIcon()
          Get the icon name, without the extension.
 hudson.model.JDK getJDK()
           
 hudson.model.AbstractProject<?,?> getOwner()
          Gets the owner AbstractProject that configured JobPropertyImpl as a job property.
 JobPropertyImpl getParent()
           
 hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> getPublishersList()
           
 hudson.model.AbstractProject getRootProject()
          Returns the root project value.
 boolean isFingerprintConfigured()
           
 boolean isInQueue(hudson.model.AbstractBuild<?,?> build)
           
 Status isMet(hudson.model.AbstractBuild<?,?> build)
          Checks if all the conditions to promote a build is met.
 void promote(hudson.model.AbstractBuild<?,?> build, hudson.model.Cause cause, Status qualification)
          Promote the given build by using the given qualification.
 boolean scheduleBuild()
          推奨されていません。 You need to be using scheduleBuild(AbstractBuild)
 boolean scheduleBuild(hudson.model.AbstractBuild<?,?> build)
           
 boolean scheduleBuild(hudson.model.AbstractBuild<?,?> build, hudson.model.Cause cause)
           
 
クラス hudson.model.AbstractProject から継承されたメソッド
_getRuns, addProperty, addToList, addTrigger, blockBuildWhenUpstreamBuilding, buildDescribable, buildDescribable, checkAbortPermission, checkout, createExecutable, createHistoryWidget, disable, doBuild, doBuildWithParameters, doCancelQueue, doCheckRetryCount, doConfigSubmit, doDisable, doDoWipeOutWorkspace, doEnable, doPolling, doRssChangelog, doWs, enable, findNearest, getActions, getAuthToken, getBuildingUpstream, getBuildTriggerUpstreamProjects, getCauseOfBlockage, getDelay, getDownstreamProjects, getEstimatedDuration, getHasCustomQuietPeriod, getIconColor, getLastBuiltOn, getModuleRoot, getModuleRoots, getProminentActions, getPronoun, getQueueItem, getQuietPeriod, getRelationship, getResourceActivities, getResourceList, getScm, getScmCheckoutRetryCount, getSomeBuildWithWorkspace, getSomeWorkspace, getTransitiveDownstreamProjects, getTransitiveUpstreamProjects, getTrigger, getTriggers, getUpstreamProjects, getWhyBlocked, getWorkspace, getWorkspaceResource, hasAbortPermission, hasCustomScmCheckoutRetryCount, hasParticipant, isBuildable, isBuildBlocked, isConcurrentBuild, isConfigurable, isDisabled, isInQueue, isParameterized, loadBuild, makeDisabled, makeSearchIndex, newBuild, onLoad, performDelete, poll, pollSCMChanges, removeFromList, removeRun, removeTrigger, resolveForCLI, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild, scheduleBuild2, scheduleBuild2, scheduleBuild2, schedulePolling, setAssignedLabel, setAssignedNode, setBlockBuildWhenUpstreamBuilding, setConcurrentBuild, setJDK, setQuietPeriod, setScm, submit, updateTransientActions
 
クラス hudson.model.Job から継承されたメソッド
assignBuildNumber, doBuildStatus, doConfigDotXml, doDescription, doDoRename, doRssAll, doRssFailed, doTimelineData, getACL, getAllJobs, getAllProperties, getBuild, getBuildByNumber, getBuildDir, getBuildForCLI, getBuildHealth, getBuildHealthReports, getBuilds, getBuilds, getBuildsAsMap, getBuildsByTimestamp, getBuildStatusUrl, getBuildTimeGraph, getDynamic, getFirstBuild, getLastBuild, getLastCompletedBuild, getLastFailedBuild, getLastStableBuild, getLastSuccessfulBuild, getLastUnstableBuild, getLastUnsuccessfulBuild, getLogRotator, getNearestBuild, getNearestOldBuild, getNextBuildNumber, getPermalinks, getProperties, getProperty, getWidgets, isBuilding, isHoldOffBuildUntilSave, isKeepDependencies, isNameEditable, logRotate, onCopiedFrom, removeProperty, removeProperty, renameTo, save, saveNextBuildNumber, setLogRotator, supportsLogRotator, updateNextBuildNumber
 
クラス hudson.model.AbstractItem から継承されたメソッド
checkPermission, delete, delete, doDoDelete, doSetName, doSubmitDescription, getAbsoluteUrl, getApi, getConfigFile, getDescription, getDescriptorByName, getDisplayName, getFullDisplayName, getFullName, getName, getRootDir, getSearchUrl, getShortUrl, getUrl, hasPermission, setDescription, toString
 
クラス hudson.model.Actionable から継承されたメソッド
addAction, getAction, getAction, getActions
 
クラス hudson.model.AbstractModelObject から継承されたメソッド
getSearch, getSearchIndex, getSearchName, requirePOST, sendError, sendError, sendError, sendError, sendError
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
インタフェース hudson.model.Saveable から継承されたメソッド
save
 
インタフェース hudson.model.Item から継承されたメソッド
delete, getAbsoluteUrl, getAllJobs, getDisplayName, getFullDisplayName, getFullName, getName, getShortUrl, getUrl, onCopiedFrom, save
 
インタフェース hudson.model.PersistenceRoot から継承されたメソッド
getRootDir
 
インタフェース hudson.search.SearchableModelObject から継承されたメソッド
getSearch
 
インタフェース hudson.search.SearchItem から継承されたメソッド
getSearchIndex, getSearchName, getSearchUrl
 
インタフェース hudson.security.AccessControlled から継承されたメソッド
checkPermission, getACL, hasPermission
 
インタフェース hudson.model.Queue.Task から継承されたメソッド
getFullDisplayName, getName, getUrl
 
インタフェース hudson.model.ResourceActivity から継承されたメソッド
getDisplayName
 

フィールドの詳細

conditions

public final hudson.util.DescribableList<PromotionCondition,PromotionConditionDescriptor> conditions
PromotionConditions. All have to be met for a build to be promoted.


icon

public java.lang.String icon
The icon that represents this promotion process. This is the name of the GIF icon that can be found in ${rootURL}/plugin/promoted-builds/icons/16x16/ and ${rootURL}/plugin/promoted-builds/icons/32x32/, e.g. "star-gold".

メソッドの詳細

getRootProject

public hudson.model.AbstractProject getRootProject()
Returns the root project value.

オーバーライド:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の getRootProject
戻り値:
the root project value.

getParent

public JobPropertyImpl getParent()
定義:
インタフェース hudson.model.Item 内の getParent
オーバーライド:
クラス hudson.model.AbstractItem 内の getParent

getOwner

public hudson.model.AbstractProject<?,?> getOwner()
Gets the owner AbstractProject that configured JobPropertyImpl as a job property.


getPublishersList

public hudson.util.DescribableList<hudson.tasks.Publisher,hudson.model.Descriptor<hudson.tasks.Publisher>> getPublishersList()
定義:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の getPublishersList

getBuildClass

protected java.lang.Class<Promotion> getBuildClass()
定義:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の getBuildClass

getBuildSteps

public java.util.List<hudson.tasks.BuildStep> getBuildSteps()

getAssignedLabel

public hudson.model.Label getAssignedLabel()
定義:
インタフェース hudson.model.Queue.Task 内の getAssignedLabel
オーバーライド:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の getAssignedLabel

getJDK

public hudson.model.JDK getJDK()
オーバーライド:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の getJDK

getCustomWorkspace

public java.lang.String getCustomWorkspace()
Gets the customWorkspace of the owner project. Support for FreeStyleProject only.

戻り値:
customWorkspace

getIcon

public java.lang.String getIcon()
Get the icon name, without the extension. It will always return a non null and non empty string, as "star-gold" is used for compatibility for older promotions configurations.

戻り値:
the icon name

isMet

public Status isMet(hudson.model.AbstractBuild<?,?> build)
Checks if all the conditions to promote a build is met.

戻り値:
null if promotion conditions are not met. otherwise returns a list of badges that record how the promotion happened.

considerPromotion

public boolean considerPromotion(hudson.model.AbstractBuild<?,?> build)
                          throws java.io.IOException
Checks if the build is promotable, and if so, promote it.

戻り値:
true if the build was promoted.
例外:
java.io.IOException

promote

public void promote(hudson.model.AbstractBuild<?,?> build,
                    hudson.model.Cause cause,
                    Status qualification)
             throws java.io.IOException
Promote the given build by using the given qualification.

パラメータ:
cause - Why the build is promoted?
例外:
java.io.IOException

scheduleBuild

public boolean scheduleBuild()
推奨されていません。 You need to be using scheduleBuild(AbstractBuild)

定義:
インタフェース hudson.model.BuildableItem 内の scheduleBuild
オーバーライド:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の scheduleBuild

scheduleBuild

public boolean scheduleBuild(hudson.model.AbstractBuild<?,?> build)

scheduleBuild

public boolean scheduleBuild(hudson.model.AbstractBuild<?,?> build,
                             hudson.model.Cause cause)

isInQueue

public boolean isInQueue(hudson.model.AbstractBuild<?,?> build)

isFingerprintConfigured

public boolean isFingerprintConfigured()
定義:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の isFingerprintConfigured

buildDependencyGraph

protected void buildDependencyGraph(hudson.model.DependencyGraph graph)
定義:
クラス hudson.model.AbstractProject<PromotionProcess,Promotion> 内の buildDependencyGraph

getAll

public static java.util.List<hudson.model.Descriptor<? extends hudson.tasks.BuildStep>> getAll()

asPermalink

public hudson.model.PermalinkProjectAction.Permalink asPermalink()


Copyright © 2011. All Rights Reserved.