Package hudson.plugins.git
Class GitPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.plugins.git.GitPublisher
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic final classstatic classstatic final classNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionGitPublisher(List<GitPublisher.TagToPush> tagsToPush, List<GitPublisher.BranchToPush> branchesToPush, List<GitPublisher.NoteToPush> notesToPush, boolean pushOnlyIfSuccess, boolean pushMerge, boolean forcePush) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jenkinsci.plugins.gitclient.GitClientgetGitClient(GitSCM gitSCM, BuildListener listener, EnvVars environment, AbstractBuild<?, ?> build, org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd) booleanbooleanbooleanbooleanbooleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) protected ObjectHandles migration from earlier version - if we were pushing merges, we'll be instantiated but tagsToPush will be null rather than empty.Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Constructor Details
-
GitPublisher
@DataBoundConstructor public GitPublisher(List<GitPublisher.TagToPush> tagsToPush, List<GitPublisher.BranchToPush> branchesToPush, List<GitPublisher.NoteToPush> notesToPush, boolean pushOnlyIfSuccess, boolean pushMerge, boolean forcePush)
-
-
Method Details
-
isPushOnlyIfSuccess
public boolean isPushOnlyIfSuccess() -
isPushMerge
public boolean isPushMerge() -
isForcePush
public boolean isForcePush() -
isPushTags
public boolean isPushTags() -
isPushBranches
public boolean isPushBranches() -
isPushNotes
public boolean isPushNotes() -
getTagsToPush
-
getBranchesToPush
-
getNotesToPush
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
getGitClient
protected org.jenkinsci.plugins.gitclient.GitClient getGitClient(GitSCM gitSCM, BuildListener listener, EnvVars environment, AbstractBuild<?, ?> build, org.jenkinsci.plugins.gitclient.UnsupportedCommand cmd) throws hudson.plugins.git.GitException, IOException, InterruptedException- Throws:
hudson.plugins.git.GitExceptionIOExceptionInterruptedException
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
readResolve
Handles migration from earlier version - if we were pushing merges, we'll be instantiated but tagsToPush will be null rather than empty.- Returns:
- This.
-