public class RepositorySyncBuilder extends Builder implements SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
RepositorySyncBuilder.DescriptorImpl |
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and Description |
---|
RepositorySyncBuilder(String url,
String credentialsId)
Create an new Repository Sync Builder using the specified Cloud Manager URL and Credentials.
|
Modifier and Type | Method and Description |
---|---|
String |
getCredentialsId()
The credentials id of the secret containing the Cloud Manager git credentials.
|
String |
getUrl()
The URL to the Cloud Manager git repository.
|
boolean |
isForce()
Whether or not to force the
push to Cloud Manager's repository |
void |
perform(Run<?,?> run,
FilePath workspace,
EnvVars env,
Launcher launcher,
TaskListener listener) |
boolean |
requiresWorkspace() |
void |
setForce(boolean force)
Set whether or not the sync to Cloud Manager's Git should be forced.
|
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
@CheckForNull public String getUrl()
@CheckForNull public String getCredentialsId()
public boolean isForce()
push
to Cloud Manager's repository@DataBoundSetter public void setForce(boolean force)
Use with caution, this will overwrite all remote content.
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath workspace, @Nonnull EnvVars env, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOException
perform
in interface SimpleBuildStep
InterruptedException
IOException
public boolean requiresWorkspace()
requiresWorkspace
in interface SimpleBuildStep
Copyright © 2020–2021 Adobe Inc. All rights reserved.