public class OpenShiftImageStreams extends hudson.scm.SCM implements IOpenShiftPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenShiftImageStreams.DescriptorImpl |
| Modifier and Type | Field and Description |
|---|---|
protected String |
apiURL |
protected Auth |
auth |
protected String |
authToken |
protected static String |
DISPLAY_NAME |
protected String |
imageStreamName |
protected String |
lastCommitId |
protected String |
namespace |
protected String |
tag |
protected String |
verbose |
ANNOTATION_FAILURE, BUILD_NUMBER, BUILD_URL_ANNOTATION, BUILD_URL_ENV_KEY, JOB_NAME, KUBERNETES_MASTER_ENV_KEY, KUBERNETES_SERVICE_HOST_ENV_KEY, KUBERNETES_SERVICE_PORT_ENV_KEY, NAMESPACE_ENV_VAR, NAMESPACE_FILE, NAMESPACE_SYNC_BUILD_CAUSE, STATE_CANCELLED, STATE_COMPLETE, STATE_ERROR, STATE_FAILED, STATE_RUNNING| Constructor and Description |
|---|
OpenShiftImageStreams(String imageStreamName,
String tag,
String apiURL,
String namespace,
String authToken,
String verbose) |
| Modifier and Type | Method and Description |
|---|---|
hudson.scm.SCMRevisionState |
calcRevisionsFromBuild(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
checkout(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
File changelogFile,
hudson.scm.SCMRevisionState baseline) |
protected hudson.scm.PollingResult |
compareRemoteRevisionInternal(hudson.EnvVars env,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline) |
protected hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline) |
hudson.scm.PollingResult |
compareRemoteRevisionWith(hudson.model.Job<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline) |
boolean |
coreLogic(hudson.Launcher launcher,
hudson.model.TaskListener listener,
Map<String,String> overrides) |
hudson.scm.ChangeLogParser |
createChangeLogParser() |
String |
getApiURL() |
Auth |
getAuth() |
String |
getAuthToken() |
String |
getBaseClassName() |
protected String |
getCommitId(hudson.model.TaskListener listener,
Map<String,String> overrides) |
hudson.scm.SCMDescriptor<?> |
getDescriptor() |
String |
getDisplayName() |
String |
getImageStreamName() |
String |
getImageStreamName(Map<String,String> overrides) |
String |
getNamespace() |
String |
getTag() |
String |
getTag(Map<String,String> overrides) |
String |
getVerbose() |
void |
postCheckout(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener) |
boolean |
requiresWorkspaceForPolling() |
void |
setAuth(Auth auth) |
_calcRevisionsFromBuild, _for, _for, all, buildEnvVars, calcRevisionsFromBuild, checkout, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, supportsPollingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotateJobInfoToResource, consolidateEnvVars, constructBuildUrl, didAllImagesChangeIfNeeded, didICTCauseDeployment, didImageChangeFromPreviousVersion, doesDCTriggerOnImageTag, doIt, doIt, doItCore, getApiURL, getAuthToken, getClient, getClient, getLatestReplicationController, getNamespace, getReplicationControllerState, getVerbose, httpGet, isBuildFinished, isBuildRunning, isDeployFinished, isReplicationControllerScaledAppropriately, verifyBuildgetOverride, pruneKeyprotected static final String DISPLAY_NAME
protected final String imageStreamName
protected final String tag
protected final String apiURL
protected final String namespace
protected final String authToken
protected final String verbose
protected String lastCommitId
protected transient Auth auth
public String getDisplayName()
getDisplayName in interface IOpenShiftPluginpublic String getApiURL()
getApiURL in interface IOpenShiftPluginpublic String getNamespace()
getNamespace in interface IOpenShiftPluginpublic String getAuthToken()
getAuthToken in interface IOpenShiftPluginpublic String getImageStreamName()
public String getTag()
public String getVerbose()
getVerbose in interface IOpenShiftPluginprotected String getCommitId(hudson.model.TaskListener listener, Map<String,String> overrides)
public void checkout(hudson.model.Run<?,?> build,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
File changelogFile,
hudson.scm.SCMRevisionState baseline)
throws IOException,
InterruptedException
checkout in class hudson.scm.SCMIOExceptionInterruptedExceptionpublic void postCheckout(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.Launcher launcher, @Nonnull hudson.FilePath workspace, @Nonnull hudson.model.TaskListener listener) throws IOException, InterruptedException
postCheckout in class hudson.scm.SCMIOExceptionInterruptedExceptionpublic hudson.scm.ChangeLogParser createChangeLogParser()
createChangeLogParser in class hudson.scm.SCMpublic hudson.scm.SCMRevisionState calcRevisionsFromBuild(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
calcRevisionsFromBuild in class hudson.scm.SCMIOExceptionInterruptedExceptionprotected hudson.scm.PollingResult compareRemoteRevisionInternal(hudson.EnvVars env,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline)
public hudson.scm.PollingResult compareRemoteRevisionWith(@Nonnull hudson.model.Job<?,?> project, @Nullable hudson.Launcher launcher, @Nullable hudson.FilePath workspace, @Nonnull hudson.model.TaskListener listener, @Nonnull hudson.scm.SCMRevisionState baseline) throws IOException, InterruptedException
compareRemoteRevisionWith in class hudson.scm.SCMIOExceptionInterruptedExceptionprotected hudson.scm.PollingResult compareRemoteRevisionWith(hudson.model.AbstractProject<?,?> project,
hudson.Launcher launcher,
hudson.FilePath workspace,
hudson.model.TaskListener listener,
hudson.scm.SCMRevisionState baseline)
throws IOException,
InterruptedException
compareRemoteRevisionWith in class hudson.scm.SCMIOExceptionInterruptedExceptionpublic hudson.scm.SCMDescriptor<?> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>getDescriptor in class hudson.scm.SCMpublic boolean requiresWorkspaceForPolling()
requiresWorkspaceForPolling in class hudson.scm.SCMpublic String getBaseClassName()
getBaseClassName in interface IOpenShiftPluginpublic void setAuth(Auth auth)
setAuth in interface IOpenShiftPluginpublic boolean coreLogic(hudson.Launcher launcher,
hudson.model.TaskListener listener,
Map<String,String> overrides)
coreLogic in interface IOpenShiftPluginpublic Auth getAuth()
getAuth in interface IOpenShiftPluginCopyright © 2004-2020 Red Hat, Inc. All Rights Reserved.