Update remote repo for BWC checks. (#482)
Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
5971a518d0
commit
247772033a
|
@ -61,7 +61,7 @@ public class InternalBwcGitPlugin implements Plugin<Project> {
|
||||||
public void apply(Project project) {
|
public void apply(Project project) {
|
||||||
this.project = project;
|
this.project = project;
|
||||||
this.gitExtension = project.getExtensions().create("bwcGitConfig", BwcGitExtension.class);
|
this.gitExtension = project.getExtensions().create("bwcGitConfig", BwcGitExtension.class);
|
||||||
Provider<String> remote = providerFactory.systemProperty("bwc.remote").forUseAtConfigurationTime().orElse("elastic");
|
Provider<String> remote = providerFactory.systemProperty("bwc.remote").forUseAtConfigurationTime().orElse("opensearch-project");
|
||||||
|
|
||||||
TaskContainer tasks = project.getTasks();
|
TaskContainer tasks = project.getTasks();
|
||||||
TaskProvider<LoggedExec> createCloneTaskProvider = tasks.register("createClone", LoggedExec.class, createClone -> {
|
TaskProvider<LoggedExec> createCloneTaskProvider = tasks.register("createClone", LoggedExec.class, createClone -> {
|
||||||
|
@ -91,7 +91,7 @@ public class InternalBwcGitPlugin implements Plugin<Project> {
|
||||||
// for testing only we can override the base remote url
|
// for testing only we can override the base remote url
|
||||||
String remoteRepoUrl = providerFactory.systemProperty("testRemoteRepo")
|
String remoteRepoUrl = providerFactory.systemProperty("testRemoteRepo")
|
||||||
.forUseAtConfigurationTime()
|
.forUseAtConfigurationTime()
|
||||||
.getOrElse("https://github.com/" + remoteRepo + "/opensearch.git");
|
.getOrElse("https://github.com/" + remoteRepo + "/OpenSearch.git");
|
||||||
addRemote.setCommandLine(asList("git", "remote", "add", remoteRepo, remoteRepoUrl));
|
addRemote.setCommandLine(asList("git", "remote", "add", remoteRepo, remoteRepoUrl));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue