Tian L a5cee49253
eng: migrate pipelines to 1ES PT (#2080)
* onboard 1ES PT

* revert the todo item

* resolve comments

* add back the nuget security analysis for OSSBuild
2023-10-27 15:25:40 +08:00

42 lines
1.3 KiB
YAML

# This template contains a job to create a VPack. The VPack is used to preinstall the app in a
# Windows OS build.
jobs:
- job: ReleaseVPack
dependsOn: Package
variables:
skipComponentGovernanceDetection: true
templateContext:
outputs:
- output: pipelineArtifact
displayName: Publish vpack\app artifact with vpack manifest
targetPath: $(XES_VPACKMANIFESTDIRECTORY)\$(XES_VPACKMANIFESTNAME)
artifactName: vpackManifest
sbomEnabled: false
steps:
- checkout: none
- download: current
displayName: Download msixBundleSigned artifact
artifact: msixBundleSigned
- task: CopyFiles@2
displayName: Copy signed MsixBundle to vpack staging folder
inputs:
sourceFolder: $(Pipeline.Workspace)\msixBundleSigned
contents: Microsoft.WindowsCalculator_8wekyb3d8bbwe.msixbundle
targetFolder: $(Pipeline.Workspace)\vpack\msixBundle
- task: PkgESVPack@12
displayName: Create and push vpack for app
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
sourceDirectory: $(Pipeline.Workspace)\vpack\msixBundle
description: VPack for the Calculator Application
pushPkgName: calculator.app
version: $(versionMajor).$(versionMinor).$(versionBuild)
owner: paxeeapps
provData: true