public override async Task RunAsync(AgentTaskPluginExecutionContext executionContext, CancellationToken token) { var repoAlias = executionContext.GetInput("repository", true); var repo = executionContext.Repositories.Single(x => string.Equals(x.Alias, repoAlias, StringComparison.OrdinalIgnoreCase)); MergeInputs(executionContext, repo); ISourceProvider sourceProvider = GetSourceProvider(repo.Type); await sourceProvider.PostJobCleanupAsync(executionContext, repo); }
public override async Task RunAsync(AgentTaskPluginExecutionContext executionContext, CancellationToken token) { var repoAlias = executionContext.TaskVariables.GetValueOrDefault("repository")?.Value; if (!string.IsNullOrEmpty(repoAlias)) { var repo = executionContext.Repositories.Single(x => string.Equals(x.Alias, repoAlias, StringComparison.OrdinalIgnoreCase)); ArgUtil.NotNull(repo, nameof(repo)); ISourceProvider sourceProvider = GetSourceProvider(repo.Type); await sourceProvider.PostJobCleanupAsync(executionContext, repo); } }
public override async Task RunAsync(AgentTaskPluginExecutionContext executionContext, CancellationToken token) { var repoAlias = executionContext.TaskVariables.GetValueOrDefault("repository")?.Value; if (!string.IsNullOrEmpty(repoAlias)) { var repo = executionContext.Repositories.Single(x => string.Equals(x.Alias, repoAlias, StringComparison.OrdinalIgnoreCase)); ArgUtil.NotNull(repo, nameof(repo)); MergeCheckoutOptions(executionContext, repo); ISourceProvider sourceProvider = SourceProviderFactory.GetSourceProvider(repo.Type); await sourceProvider.PostJobCleanupAsync(executionContext, repo); } if (!PlatformUtil.RunningOnWindows && !AgentKnobs.DisableTeePluginRemoval.GetValue(executionContext).AsBoolean()) { initializeTeeUtil(executionContext, token); teeUtil.DeleteTee(); } }