|
| 1 | +<<<<<<< HEAD |
1 | 2 | trigger: none |
2 | 3 |
|
3 | 4 | name: mssql-python-dummy-release-pipeline |
| 5 | +======= |
| 6 | +name: mssql-python-official-release-pipeline |
| 7 | +>>>>>>> 06397346bcf475452f4047122b3367d63fbebecd |
4 | 8 |
|
5 | 9 | variables: |
6 | 10 | - group: 'ESRP Federated Creds (AME)' |
7 | 11 |
|
| 12 | +<<<<<<< HEAD |
8 | 13 | extends: |
9 | 14 | template: v2/OneBranch.Official.CrossPlat.yml@templates |
10 | 15 | parameters: |
@@ -190,3 +195,51 @@ extends: |
190 | 195 | # ServiceEndpointUrl: 'https://api.esrp.microsoft.com' |
191 | 196 | # MainPublisher: 'ESRPRELPACMAN' |
192 | 197 | # DomainTenantId: '$(DomainTenantId)' |
| 198 | +======= |
| 199 | +jobs: |
| 200 | +- job: ReleaseESRPPackage |
| 201 | + displayName: 'Release ESRP Package' |
| 202 | + pool: |
| 203 | + vmImage: 'windows-latest' |
| 204 | + |
| 205 | + steps: |
| 206 | + - task: DownloadPipelineArtifact@2 |
| 207 | + inputs: |
| 208 | + buildType: 'specific' |
| 209 | + project: '$(System.TeamProject)' |
| 210 | + definition: 2162 |
| 211 | + buildVersionToDownload: 'latest' |
| 212 | + branchName: '$(Build.SourceBranch)' |
| 213 | + artifactName: 'mssql-python-wheels-dist' |
| 214 | + targetPath: '$(Build.SourcesDirectory)\dist' |
| 215 | + displayName: 'Download release wheel files artifact from latest successful run on main branch' |
| 216 | + |
| 217 | + # Show content of the downloaded artifact |
| 218 | + - script: | |
| 219 | + echo "Contents of the dist directory:" |
| 220 | + dir "$(Build.SourcesDirectory)\dist" |
| 221 | + displayName: 'List contents of dist directory' |
| 222 | +
|
| 223 | + - task: EsrpRelease@9 |
| 224 | + displayName: 'ESRP Release' |
| 225 | + inputs: |
| 226 | + connectedservicename: '$(ESRPConnectedServiceName)' |
| 227 | + usemanagedidentity: true |
| 228 | + keyvaultname: '$(AuthAKVName)' |
| 229 | + signcertname: '$(AuthSignCertName)' |
| 230 | + clientid: '$(EsrpClientId)' |
| 231 | + Intent: 'PackageDistribution' |
| 232 | + # Changing content type to Maven release (NOT PyPI) since we want to do dummy release |
| 233 | + # for ESRP testing purposes, not for actual PyPI distribution. |
| 234 | + # This is a workaround to allow ESRP to process the release without actual PyPI content |
| 235 | + # and to avoid ESRP validation errors. |
| 236 | + ContentType: 'Maven' |
| 237 | + ContentSource: 'Folder' |
| 238 | + FolderLocation: '$(Build.SourcesDirectory)/dist' |
| 239 | + WaitForReleaseCompletion: true |
| 240 | + Owners: '$(owner)' |
| 241 | + Approvers: '$(approver)' |
| 242 | + ServiceEndpointUrl: 'https://api.esrp.microsoft.com' |
| 243 | + MainPublisher: 'ESRPRELPACMAN' |
| 244 | + DomainTenantId: '$(DomainTenantId)' |
| 245 | +>>>>>>> 06397346bcf475452f4047122b3367d63fbebecd |
0 commit comments