public class RepositorySyncBuilder extends Builder implements SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
RepositorySyncBuilder.DescriptorImpl |
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactoryBuildStep.PublisherListExtensionPoint.LegacyInstancesAreScopedToHudsonBUILDERS, 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, prebuildgetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperform, performgetProjectAction, 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 SimpleBuildStepInterruptedExceptionIOExceptionpublic boolean requiresWorkspace()
requiresWorkspace in interface SimpleBuildStepCopyright © 2020–2021 Adobe Inc. All rights reserved.