public class SourceFactory extends Object implements jenkins.scm.api.trait.SCMNavigatorRequest.SourceLambda
SCMSource
Modifier and Type | Field and Description |
---|---|
static String |
SEPARATOR_ID
Separator for ID.
|
Constructor and Description |
---|
SourceFactory(String id,
AWSCodeCommitSCMNavigatorRequest request)
Constructor
|
Modifier and Type | Method and Description |
---|---|
jenkins.scm.api.SCMSource |
create(String projectName) |
protected String |
getRemote(com.amazonaws.services.codecommit.AWSCodeCommit awsCodeCommit,
String projectName,
boolean cloneSsh)
get the remote url on code commit for git.
|
public static final String SEPARATOR_ID
public SourceFactory(String id, AWSCodeCommitSCMNavigatorRequest request)
id
- the id used like prefix for id scm source.request
- the request contains information on SCMSource.@NonNull public jenkins.scm.api.SCMSource create(@NonNull String projectName) throws IOException, InterruptedException
create
in interface jenkins.scm.api.trait.SCMNavigatorRequest.SourceLambda
IOException
InterruptedException
protected String getRemote(com.amazonaws.services.codecommit.AWSCodeCommit awsCodeCommit, @NonNull String projectName, boolean cloneSsh)
awsCodeCommit
- the client on API Code commitprojectName
- the project name in code commitcloneSsh
- the type of cloneCopyright © 2016–2017. All rights reserved.