Class SCLMSCM
java.lang.Object
hudson.scm.SCM
org.jenkinsci.plugins.IBM_zOS_Connector.SCLMSCM
- All Implemented Interfaces:
ExtensionPoint,Describable<SCM>
SCLMSCM
Class implementing SCM functionality for SCLM.s- Version:
- 1.0
- Author:
- Alexander Shcherbakov
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG -
Constructor Summary
ConstructorsConstructorDescriptionSCLMSCM()Dummy constructorSCLMSCM(String server, int port, String credentialsId, boolean JESINTERFACELEVEL1, boolean FTPActiveMode, String project, String alternate, String group, String types, boolean custJobStep, String JobStep, boolean custJobHeader, String JobHeader) Constructor that is invoked from project configuration page. -
Method Summary
Modifier and TypeMethodDescriptioncalcRevisionsFromBuild(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Calculate revision from build.voidcheckout(Run<?, ?> build, Launcher launcher, FilePath workspace, TaskListener listener, File changelogFile, SCMRevisionState baseline) Checkout remote changes to the workspace.compareRemoteRevisionWith(Job<?, ?> project, Launcher launcher, FilePath workspace, TaskListener listener, SCMRevisionState _baseline) Compare remote revision with old one.Get parser for changelog.xml .Get SCM Alternate Project Definition.booleanGet custJobHeader.booleanGet custJobStep.Get descriptor.booleanGet FTPActiveModegetGroup()Get SCLM Group.booleanGet JESINTERFACELEVEL1.Get Job header.Get Job step.intgetPort()Get FTP port to connect to.Get SCLM Project Name.Get LPAR name or IP address.getTypes()Get SCLM file types under interest.booleanWhether SCM requires workspace for polling process.booleanWhether 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, processWorkspaceBeforeDeletion
-
Constructor Details
-
SCLMSCM
@DataBoundConstructor public SCLMSCM(String server, int port, String credentialsId, boolean JESINTERFACELEVEL1, boolean FTPActiveMode, String project, String alternate, String group, String types, boolean custJobStep, String JobStep, boolean custJobHeader, 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
Get LPAR name or IP address.- Returns:
server
-
getPort
public int getPort()Get FTP port to connect to.- Returns:
port
-
getCredentialsId
- Returns:
- credentials id provided.
-
getJESINTERFACELEVEL1
public boolean getJESINTERFACELEVEL1()Get JESINTERFACELEVEL1.- Returns:
JESINTERFACELEVEL1
-
getFTPActiveMode
public boolean getFTPActiveMode()Get FTPActiveMode- Returns:
FTPActiveMode
-
getProject
Get SCLM Project Name.- Returns:
project
-
getAlternate
Get SCM Alternate Project Definition.- Returns:
alternate
-
getGroup
Get SCLM Group.- Returns:
group
-
getJobHeader
Get Job header.- Returns:
JobHeader
-
getJobStep
Get Job step.- Returns:
JobStep
-
getTypes
Get SCLM file types under interest.- Returns:
types
-
supportsPolling
public boolean supportsPolling()Whether SCM supports polling.- Overrides:
supportsPollingin classSCM- Returns:
true
-
requiresWorkspaceForPolling
public boolean requiresWorkspaceForPolling()Whether SCM requires workspace for polling process.- Overrides:
requiresWorkspaceForPollingin classSCM- Returns:
false
-
compareRemoteRevisionWith
public PollingResult compareRemoteRevisionWith(@Nonnull Job<?, ?> project, Launcher launcher, FilePath workspace, @Nonnull TaskListener listener, @Nonnull SCMRevisionState _baseline) Compare remote revision with old one.- Overrides:
compareRemoteRevisionWithin classSCM- Parameters:
project- Current project.launcher- Current launcher.workspace- Current workspace.listener- Current listener._baseline- Old revision.- Returns:
- PollingResult with comparison.
- See Also:
-
PollingResultSCLMSCMRevisionStategetNewRevision(SCLMSCMRevisionState, String, String)
-
checkout
public void checkout(@Nonnull Run<?, ?> build, @Nonnull Launcher launcher, @Nonnull FilePath workspace, @Nonnull TaskListener listener, File changelogFile, SCMRevisionState baseline) throws 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 classSCM- Parameters:
build- Current build.launcher- Current launcher.workspace- Current workspace.listener- Current listener.changelogFile- Current changeLogFile.baseline- Last revision.- Throws:
IOException- See Also:
-
SCLMSCMRevisionStategetNewRevision(SCLMSCMRevisionState, String, String)
-
calcRevisionsFromBuild
public SCMRevisionState calcRevisionsFromBuild(@Nonnull Run<?, ?> build, FilePath workspace, Launcher launcher, @Nonnull TaskListener listener) Calculate revision from build. Dummy.- Overrides:
calcRevisionsFromBuildin classSCM- Parameters:
build- Current build.workspace- Current workspace.launcher- Current launcher.listener- Current listener.- Returns:
- Actual revision.
- See Also:
-
createChangeLogParser
Get parser for changelog.xml .- Specified by:
createChangeLogParserin classSCM- Returns:
- SCLMChangeLogParser instance.
-
getDescriptor
Get descriptor.- Specified by:
getDescriptorin interfaceDescribable<SCM>- Overrides:
getDescriptorin classSCM- Returns:
- Descriptor for SCLMSCM.
-