Skip to content

Use 1ES releaseJob in release.yml #7924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,32 @@ jobs:
env:
SignType: $(signType)

- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)/vsix'
TargetFolder: '$(Build.SourcesDirectory)/Packages/VSIX_$(channel)'

- ${{ if eq(parameters.isOfficial, true) }}:
- task: 1ES.PublishBuildArtifacts@1
condition: succeeded()
displayName: 'Publish VSIXs'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
ArtifactName: 'VSIX_$(channel)'
PathtoPublish: '$(Build.SourcesDirectory)/Packages'
ArtifactName: 'Packages'
- task: 1ES.PublishBuildArtifacts@1
condition: succeededOrFailed()
displayName: 'Publish Signing Logs'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/out/logs'
ArtifactName: '${{ parameters.platform }} Signing Logs'

- ${{ else }}:
- task: PublishBuildArtifacts@1
condition: succeeded()
displayName: 'Publish VSIXs'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
ArtifactName: 'VSIX_$(channel)'
PathtoPublish: '$(Build.SourcesDirectory)/Packages'
ArtifactName: 'Packages'

- script: npm run test:artifacts
displayName: 'Run artifacts tests'
displayName: 'Run artifacts tests'
18 changes: 8 additions & 10 deletions azure-pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,18 @@ extends:
name: netcore1espool-internal
image: 1es-ubuntu-2204
os: linux
templateContext:
type: releaseJob
isProduction: true
inputs:
- input: pipelineArtifact
pipeline: officialBuildCI
artifactName: Packages
destinationPath: $(Pipeline.Workspace)
strategy:
runOnce:
deploy:
steps:
- download: 'none'
- task: DownloadPipelineArtifact@2
displayName: '📦 Download artifacts from build pipeline.'
inputs:
buildType: 'specific'
project: 'internal'
definition: 1264
buildVersionToDownload: 'specific'
buildId: '$(resources.pipeline.officialBuildCI.runID)'
branchName: '$(resources.pipeline.officialBuildCI.sourceBranch)'
- template: /azure-pipelines/install-node.yml@self
- pwsh: |
npm install --global @vscode/vsce
Expand Down
Loading