Skip to content
21 changes: 9 additions & 12 deletions .pipelines/DSC-Official-PMC.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ resources:
extends:
template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
parameters:
release:
category: Azure
featureFlags:
WindowsHostVersion:
Disk: Large
Version: 2022
Network: KS1
customTags: 'ES365AIMigrationTooling'
globalSdl:
disableLegacyManifest: true
Expand Down Expand Up @@ -67,9 +60,9 @@ extends:
- job: SetPackageVersion
displayName: Set PackageVersion
pool:
type: windows
vmImage: windows-latest
type: linux
variables:
LinuxContainerImage: 'onebranch.azurecr.io/linux/ubuntu-2204:latest'
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
ob_sdl_sbom_enabled: false
ob_signing_setup_enabled: false
Expand Down Expand Up @@ -186,6 +179,8 @@ extends:
- input: pipelineArtifact
artifactName: drop_BuildAndSign_BuildLinuxArm64Musl
variables:
- name: LinuxContainerImage
value: 'onebranch.azurecr.io/linux/ubuntu-2204:latest'
- name: ob_outputDirectory
value: '$(Build.ArtifactStagingDirectory)/ONEBRANCH_ARTIFACT'
- name: ev2ServiceGroupRootFolder
Expand All @@ -211,7 +206,8 @@ extends:

- task: PipAuthenticate@1
inputs:
artifactFeeds: 'PowerShellCore/PowerShellCore_PublicPackages'
# artifactFeeds: 'One/DSC-Compute-PMC'
artifactFeeds: 'One/azsecpack-pmc-cli'
displayName: 'Pip Authenticate'
env:
ob_restore_phase: true
Expand All @@ -221,7 +217,7 @@ extends:
pip --version --verbose
$pythonDlFolderPath = Join-Path '$(ev2ServiceGroupRootFolder)/Shell/Run' -ChildPath "python_dl"
New-Item -Path $pythonDlFolderPath -ItemType Directory -Force > $null
pip download -d $pythonDlFolderPath pmc-cli --platform=manylinux_2_17_x86_64 --only-binary=:all: --verbose
pip download -d $pythonDlFolderPath pmc-cli --only-binary=:all: -vvv
displayName: 'Download pmc-cli package'
env:
ob_restore_phase: true
Expand Down Expand Up @@ -252,7 +248,7 @@ extends:
$metadataHash = @{
ReleaseTag = "v$packageVersion"
ForProduction = $true
SkipPublish = $(PublishToPMC) -eq 'false'
SkipPublish = '$(PublishToPMC)' -eq 'False'
}

$metadataHash | ConvertTo-Json | Out-File $pathToPMCMetadataFile
Expand Down Expand Up @@ -333,6 +329,7 @@ extends:
SourceFolder: '$(Build.SourcesDirectory)/.pipelines'
Contents: 'EV2Specs/**'
TargetFolder: $(ob_outputDirectory)

- stage: Prod_PMCRelease
displayName: 'Deploy packages to PMC with EV2'
dependsOn:
Expand Down
3 changes: 1 addition & 2 deletions .pipelines/DSC-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ extends:
- job: SetPackageVersion
displayName: Set PackageVersion
pool:
type: windows
vmImage: windows-latest
type: linux
variables:
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
ob_sdl_sbom_enabled: false
Expand Down
Loading