Skip to content

Commit

Permalink
rc2.0: Remove PublishPipelineArtifact task (#21191)
Browse files Browse the repository at this point in the history
This change removes the `PublishPipelineArtifact` task
  • Loading branch information
sonalideshpandemsft authored May 21, 2024
1 parent b83f08b commit 1a00982
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
10 changes: 10 additions & 0 deletions tools/pipelines/templates/1ES/build-npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,16 @@ extends:
artifactName: _api-extractor-temp
sbomEnabled: false
publishLocation: pipeline

# This condition should be kept in sync with the one in include-set-package-version, which decides if
# upload-dev-manifest.yml should be included or not.
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.tagName, 'client'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))) }}:
- output: pipelineArtifact
displayName: Publish Artifact - release_reports
targetPath: $(Build.ArtifactStagingDirectory)/release_reports
artifactName: release_reports
sbomEnabled: false
publishLocation: pipeline

# Job - Component detection
- ${{ if eq(parameters.publish, true) }}:
Expand Down
16 changes: 8 additions & 8 deletions tools/pipelines/templates/upload-dev-manifest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright (c) Microsoft Corporation and contributors. All rights reserved.
# Licensed under the MIT License.

parameters:
parameters:
- name: buildDirectory
type: string

- name: STORAGE_ACCOUNT
type: string

Expand All @@ -30,19 +30,19 @@ steps:
mkdir upload_release_reports
flub release report-unreleased --version $(SetVersion.version) --fullReportFilePath generate_release_reports/manifest.full.json --outDir upload_release_reports --branchName '$(Build.SourceBranch)'
- task: PublishPipelineArtifact@1
displayName: Publish release reports
continueOnError: true
- task: CopyFiles@2
displayName: Copy release reports
inputs:
targetPath: ${{ parameters.buildDirectory }}/upload_release_reports
artifactName: 'release_reports'
SourceFolder: ${{ parameters.buildDirectory }}/upload_release_reports
TargetFolder: $(Build.ArtifactStagingDirectory)/release_reports

- task: AzureCLI@2
displayName: Upload release reports
continueOnError: true
inputs:
azureSubscription: 'fluid-docs'
scriptType: bash
workingDirectory: ${{ parameters.buildDirectory }}
scriptLocation: inlineScript
inlineScript: |
for file in upload_release_reports/*; do
Expand Down

0 comments on commit 1a00982

Please sign in to comment.