Skip to content

Commit

Permalink
Modifying migrate script
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaguereca committed Nov 18, 2024
1 parent b1d855f commit 7f099c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/OctoshiftCLI.IntegrationTests/BbsToGithub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ public async Task MigrateRepo_MultipartUpload()
var bbsServer = "http://e2e-bbs-8-5-0-linux-2204.eastus.cloudapp.azure.com:7990";
var targetName = $"E2E -{TestHelper.GetOsName().ToUpper()}-e2e-{Guid.NewGuid()}";
var targetRepo = $"multi-part-{targetName}";
var archiveDownloadOptions = $" --ssh-user octoshift --ssh-private-key {SSH_KEY_FILE} --ssh-port 22";

var archiveDownloadOptions = $" --ssh-user octoshift --ssh-private-key {SSH_KEY_FILE}";
var sshKey = Environment.GetEnvironmentVariable(GetSshKeyName(bbsServer));
await File.WriteAllTextAsync(Path.Join(TestHelper.GetOsDistPath(), SSH_KEY_FILE), sshKey);

Expand All @@ -161,7 +162,7 @@ await retryPolicy.Retry(async () =>
await _targetHelper.ResetGithubTestEnvironment(githubTargetOrg);
});

var migrateRepoCommand = $"migrate-repo --github-org {githubTargetOrg} --bbs-server-url {bbsServer} --bbs-project {bbsProjectKey} --bbs-repo {bbsRepo} --github-repo{targetRepo} --ssh-port 22{archiveDownloadOptions} --use-github-storage";
var migrateRepoCommand = $"migrate-repo --github-org {githubTargetOrg} --bbs-server-url {bbsServer} --bbs-project {bbsProjectKey} --bbs-repo {bbsRepo}{archiveDownloadOptions} --use-github-storage";

await _targetHelper.RunBbsMigrateRepoCommand(migrateRepoCommand, _tokens);

Expand Down

0 comments on commit 7f099c1

Please sign in to comment.