@@ -57,7 +57,7 @@ extends:
57
57
variables :
58
58
- group : Release-Pipeline
59
59
jobs :
60
- - job : Job_1
60
+ - job : VerificationJob
61
61
displayName : Release Verification
62
62
condition : succeeded()
63
63
timeoutInMinutes : 0
@@ -104,51 +104,52 @@ extends:
104
104
targetType : inline
105
105
script : |
106
106
# Write your PowerShell commands here.
107
- $newReleaseName = "${env:ReleaseVersion}-${env:BUILD_BUILDNUMBER}";
108
- if ($(DRP_DraftRelease) -eq "true") {
109
- $newReleaseName += "[Draft]";
107
+ $newReleaseName = "${env:ReleaseVersion}-${env:BUILD_BUILDNUMBER}"
108
+ if (" $(DRP_DraftRelease)" -eq "true") {
109
+ $newReleaseName += "[Draft]"
110
110
}
111
- Write-Host "Setting release name to: $newReleaseName";
112
- Write-Host "##vso[build.updatebuildnumber]$newReleaseName";
111
+ Write-Host "Setting release name to: $newReleaseName"
112
+ Write-Host "##vso[build.updatebuildnumber]$newReleaseName"
113
113
- task : PowerShell@2
114
114
displayName : Check for Nuget Assets
115
115
inputs :
116
116
targetType : inline
117
117
script : |-
118
- $nugetPath = "${env:DRP_MONITORRELEASE}\NugetAssets";
119
- Write-Host "Looking for nuget packages under $nugetPath";
118
+ $nugetPath = "${env:DRP_MONITORRELEASE}\NugetAssets"
119
+ Write-Host "Looking for nuget packages under $nugetPath"
120
120
if (-not (Test-Path -path $nugetPath)) {
121
- Write-Host "##vso[task.logissue type=error]Can't find file at $nugetPath";
122
- exit 1;
121
+ Write-Host "##vso[task.logissue type=error]Can't find file at $nugetPath"
122
+ exit 1
123
123
}
124
124
else {
125
- $pkgs = Get-ChildItem -Path "$nugetPath" -Filter "*.nupkg" -Recurse;
126
- $measurePkgs = $pkgs | Measure-Object;
125
+ $pkgs = Get-ChildItem -Path "$nugetPath" -Filter "*.nupkg" -Recurse
126
+ $measurePkgs = $pkgs | Measure-Object
127
127
if (${env:Monitor_PublishedPackageCount} -ne $measurePkgs.Count) {
128
- Write-Host "##vso[task.logissue type=error]Expected ${env:Monitor_PublishedPackageCount} .nupkg files, found $($measurePkgs.Count) packages.";
128
+ Write-Host "##vso[task.logissue type=error]Expected ${env:Monitor_PublishedPackageCount} .nupkg files, found $($measurePkgs.Count) packages."
129
129
}
130
130
else {
131
- Write-Host "Found $($measurePkgs.Count) packages, as expected.";
131
+ Write-Host "Found $($measurePkgs.Count) packages, as expected."
132
132
}
133
133
}
134
134
- task : PowerShell@2
135
135
displayName : Check for Release Notes
136
136
inputs :
137
137
targetType : inline
138
138
script : |-
139
- $notesPath = $env:DRP_ReleaseNotes;
140
- Write-Host "Looking for release notes at $notesPath";
139
+ $notesPath = $env:DRP_ReleaseNotes
140
+ Write-Host "Looking for release notes at $notesPath"
141
141
if (-not (Test-Path -path $notesPath)) {
142
- Write-Host "##vso[task.logissue type=error]Can't find file at $notesPath";
143
- exit 1;
142
+ Write-Host "##vso[task.logissue type=error]Can't find file at $notesPath"
143
+ exit 1
144
144
}
145
145
else {
146
- $notesContent = Get-Content -Path $notesPath;
147
- Write-Host "Contents of $notesPath :";
148
- Write-Host "$notesContent";
146
+ $notesContent = Get-Content -Path $notesPath
147
+ Write-Host "Contents of $notesPath :"
148
+ Write-Host "$notesContent"
149
149
}
150
150
- job : PostDeploymentApprovalJob
151
151
displayName : Post-Deployment Approval
152
+ dependsOn : VerificationJob
152
153
condition : succeeded()
153
154
timeoutInMinutes : 0
154
155
pool : server
0 commit comments