public async override Task ExecuteAsync(IOperationExecutionContext context)
        {
            this.LogInformation($"Importing {this.ArtifactName} artifact with build number \"{this.BuildNumber ?? "latest"}\" from TFS...");

            this.TfsBuildNumber = await VsoArtifactImporter.DownloadAndImportAsync(
                (IVsoConnectionInfo)this,
                (ILogger)this,
                this.TeamProject,
                this.BuildNumber,
                this.BuildDefinition,
                new ArtifactIdentifier((int)context.ApplicationId, context.ReleaseNumber, context.BuildNumber, context.DeployableId, this.ArtifactName)
                );

            this.LogInformation("Import complete.");
        }
Beispiel #2
0
        public async override Task ExecuteAsync(IOperationExecutionContext context)
        {
            this.LogInformation($"Importing {this.ArtifactName} artifact with build number \"{this.BuildNumber ?? "latest"}\" from TFS...");

            this.TfsBuildNumber = await VsoArtifactImporter.DownloadAndImportAsync(
                (IVsoConnectionInfo)this,
                this,
                this.TeamProject,
                this.BuildNumber,
                this.BuildDefinition,
                context,
                this.ArtifactName
                );

            this.LogInformation("Import complete.");
        }