Class SCLMSCM
java.lang.Object
hudson.scm.SCM
org.jenkinsci.plugins.IBM_zOS_Connector.SCLMSCM
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<hudson.scm.SCM>
public class SCLMSCM
extends hudson.scm.SCM
SCLMSCM
Class implementing SCM functionality for SCLM.s- Version:
- 1.0
- Author:
- Alexander Shcherbakov
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSCLMSCM.SCLMSCMDescriptorSCLMSCMDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG -
Constructor Summary
Constructors Constructor Description SCLMSCM()Dummy constructorSCLMSCM(java.lang.String server, int port, java.lang.String credentialsId, boolean JESINTERFACELEVEL1, boolean FTPActiveMode, java.lang.String project, java.lang.String alternate, java.lang.String group, java.lang.String types, boolean custJobStep, java.lang.String JobStep, boolean custJobHeader, java.lang.String JobHeader)Constructor that is invoked from project configuration page. -
Method Summary
Modifier and Type Method Description hudson.scm.SCMRevisionStatecalcRevisionsFromBuild(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)Calculate revision from build.voidcheckout(hudson.model.Run<?,?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, java.io.File changelogFile, hudson.scm.SCMRevisionState baseline)Checkout remote changes to the workspace.hudson.scm.PollingResultcompareRemoteRevisionWith(hudson.model.Job<?,?> project, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.TaskListener listener, hudson.scm.SCMRevisionState _baseline)Compare remote revision with old one.hudson.scm.ChangeLogParsercreateChangeLogParser()Get parser for changelog.xml .java.lang.StringgetAlternate()Get SCM Alternate Project Definition.java.lang.StringgetCredentialsId()booleangetCustJobHeader()Get custJobHeader.booleangetCustJobStep()Get custJobStep.SCLMSCM.SCLMSCMDescriptorgetDescriptor()Get descriptor.booleangetFTPActiveMode()Get FTPActiveModejava.lang.StringgetGroup()Get SCLM Group.booleangetJESINTERFACELEVEL1()Get JESINTERFACELEVEL1.java.lang.StringgetJobHeader()Get Job header.java.lang.StringgetJobStep()Get Job step.intgetPort()Get FTP port to connect to.java.lang.StringgetProject()Get SCLM Project Name.java.lang.StringgetServer()Get LPAR name or IP address.java.lang.StringgetTypes()Get SCLM file types under interest.booleanrequiresWorkspaceForPolling()Whether SCM requires workspace for polling process.booleansupportsPolling()Whether SCM supports polling.Methods inherited from class hudson.scm.SCM
_calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SCLMSCM
@DataBoundConstructor public SCLMSCM(java.lang.String server, int port, java.lang.String credentialsId, boolean JESINTERFACELEVEL1, boolean FTPActiveMode, java.lang.String project, java.lang.String alternate, java.lang.String group, java.lang.String types, boolean custJobStep, java.lang.String JobStep, boolean custJobHeader, java.lang.String JobHeader)Constructor that is invoked from project configuration page.- Parameters:
server- LPAR name of IP address.port- FTP port to connect to.credentialsId- Credentials id..JESINTERFACELEVEL1- JESINTERFACELEVEL=1?FTPActiveMode- FTP data transfer mode (true=active, false=passive)project- SCLM Project Name.alternate- SCLM Alternate Project Definition.group- SCLM Group.types- Types under interest (separated by comma).custJobStep- Whether user defines own FLMCMD job step.JobStep- User-supplies FLMCMD job step.custJobHeader- Whether user supplied own job header.JobHeader- User-supplied job header.
-
SCLMSCM
public SCLMSCM()Dummy constructor
-
-
Method Details
-
getCustJobHeader
public boolean getCustJobHeader()Get custJobHeader.- Returns:
custJobHeader
-
getCustJobStep
public boolean getCustJobStep()Get custJobStep.- Returns:
custJobStep
-
getServer
public java.lang.String getServer()Get LPAR name or IP address.- Returns:
server
-
getPort
public int getPort()Get FTP port to connect to.- Returns:
port
-
getCredentialsId
public java.lang.String getCredentialsId()- Returns:
- credentials id provided.
-
getJESINTERFACELEVEL1
public boolean getJESINTERFACELEVEL1()Get JESINTERFACELEVEL1.- Returns:
JESINTERFACELEVEL1
-
getFTPActiveMode
public boolean getFTPActiveMode()Get FTPActiveMode- Returns:
FTPActiveMode
-
getProject
public java.lang.String getProject()Get SCLM Project Name.- Returns:
project
-
getAlternate
public java.lang.String getAlternate()Get SCM Alternate Project Definition.- Returns:
alternate
-
getGroup
public java.lang.String getGroup()Get SCLM Group.- Returns:
group
-
getJobHeader
public java.lang.String getJobHeader()Get Job header.- Returns:
JobHeader
-
getJobStep
public java.lang.String getJobStep()Get Job step.- Returns:
JobStep
-
getTypes
public java.lang.String getTypes()Get SCLM file types under interest.- Returns:
types
-
supportsPolling
public boolean supportsPolling()Whether SCM supports polling.- Overrides:
supportsPollingin classhudson.scm.SCM- Returns:
true
-
requiresWorkspaceForPolling
public boolean requiresWorkspaceForPolling()Whether SCM requires workspace for polling process.- Overrides:
requiresWorkspaceForPollingin classhudson.scm.SCM- Returns:
false
-
compareRemoteRevisionWith
public hudson.scm.PollingResult compareRemoteRevisionWith(@Nonnull hudson.model.Job<?,?> project, hudson.Launcher launcher, hudson.FilePath workspace, @Nonnull hudson.model.TaskListener listener, @Nonnull hudson.scm.SCMRevisionState _baseline)Compare remote revision with old one.- Overrides:
compareRemoteRevisionWithin classhudson.scm.SCM- Parameters:
project- Current project.launcher- Current launcher.workspace- Current workspace.listener- Current listener._baseline- Old revision.- Returns:
- PollingResult with comparison.
- See Also:
PollingResult,SCLMSCMRevisionState,getNewRevision(SCLMSCMRevisionState, String, String)
-
checkout
public void checkout(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.Launcher launcher, @Nonnull hudson.FilePath workspace, @Nonnull hudson.model.TaskListener listener, java.io.File changelogFile, hudson.scm.SCMRevisionState baseline) throws java.io.IOExceptionCheckout remote changes to the workspace.
As the build itself is performed via SCLM, the checkout's main task is generation of revision.- Overrides:
checkoutin classhudson.scm.SCM- Parameters:
build- Current build.launcher- Current launcher.workspace- Current workspace.listener- Current listener.changelogFile- Current changeLogFile.baseline- Last revision.- Throws:
java.io.IOException- See Also:
SCLMSCMRevisionState,getNewRevision(SCLMSCMRevisionState, String, String)
-
calcRevisionsFromBuild
public hudson.scm.SCMRevisionState calcRevisionsFromBuild(@Nonnull hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener)Calculate revision from build. Dummy.- Overrides:
calcRevisionsFromBuildin classhudson.scm.SCM- Parameters:
build- Current build.workspace- Current workspace.launcher- Current launcher.listener- Current listener.- Returns:
- Actual revision.
- See Also:
SCLMSCMRevisionState
-
createChangeLogParser
public hudson.scm.ChangeLogParser createChangeLogParser()Get parser for changelog.xml .- Specified by:
createChangeLogParserin classhudson.scm.SCM- Returns:
- SCLMChangeLogParser instance.
-
getDescriptor
Get descriptor.- Specified by:
getDescriptorin interfacehudson.model.Describable<hudson.scm.SCM>- Overrides:
getDescriptorin classhudson.scm.SCM- Returns:
- Descriptor for SCLMSCM.
-