Class MavenSnapshotCheck
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- jenkins.plugins.mvn_snapshot_check.MavenSnapshotCheck
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class MavenSnapshotCheck extends Builder implements SimpleBuildStep
- Author:
- donghui 2019/4/24.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MavenSnapshotCheck.DescriptorImpl
Descriptor forMavenSnapshotCheck
.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description MavenSnapshotCheck(boolean check, String pomFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCheck()
MavenSnapshotCheck.DescriptorImpl
getDescriptor()
String
getExcludePomFiles()
String
getPomFiles()
boolean
perform(AbstractBuild build, Launcher launcher, BuildListener listener)
traditional jobvoid
perform(Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener)
pipeline pluginvoid
setCheck(boolean check)
void
setExcludePomFiles(String excludePomFiles)
void
setPomFiles(String pomFiles)
-
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
MavenSnapshotCheck
@DataBoundConstructor public MavenSnapshotCheck(boolean check, String pomFiles)
-
-
Method Detail
-
getCheck
public boolean getCheck()
-
setCheck
@DataBoundSetter public void setCheck(boolean check)
-
getPomFiles
public String getPomFiles()
-
setPomFiles
@DataBoundSetter public void setPomFiles(String pomFiles)
-
getExcludePomFiles
public String getExcludePomFiles()
-
setExcludePomFiles
@DataBoundSetter public void setExcludePomFiles(String excludePomFiles)
-
getDescriptor
public MavenSnapshotCheck.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener)
traditional job- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Parameters:
build
- a build this is running as a part oflauncher
- a way to start processeslistener
- a place to send output
-
perform
public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener)
pipeline plugin- Specified by:
perform
in interfaceSimpleBuildStep
- Parameters:
run
- a build this is running as a part ofworkspace
- a workspace to use for any file operationslauncher
- a way to start processeslistener
- a place to send output
-
-