@@ -19,6 +19,8 @@ parameters:
19
19
displayName : Is preview version(Including < 1.0.0)
20
20
type : boolean
21
21
default : false
22
+ variables :
23
+ BumpUpBranch : none
22
24
stages :
23
25
- stage : OOBRelease
24
26
displayName : OOBRelease
@@ -51,7 +53,7 @@ stages:
51
53
git config user.name "azure-powershell-bot"
52
54
git checkout -b codeoob/${{ parameters.ServiceName }}
53
55
git add -A
54
- if (${{ parameters.Preview }} -eq $true ) {
56
+ if ($$ {{ parameters.Preview }}) {
55
57
git reset -- ./tools/Tools.Common/SerializedCmdlets/Az.${{ parameters.ServiceName }}.json
56
58
}
57
59
git commit -m "Bump up version for ${{ parameters.ServiceName }}"
@@ -66,6 +68,7 @@ stages:
66
68
condition : and(succeeded(), eq('${{ parameters.BumpUpVersion }}', 'true'))
67
69
- task : PowerShell@2
68
70
displayName : get changelog info
71
+ name : outputinfo
69
72
inputs :
70
73
targetType : ' inline'
71
74
script : |
@@ -77,8 +80,8 @@ stages:
77
80
$versionNumber = $matches.Groups[1].Value
78
81
$versionChanges = $matches.Groups[2].Value.Trim()
79
82
}
80
- if ($PreviewSuffix) {
81
- $versionNumber += $PreviewSuffix
83
+ if ($${{ parameters. PreviewSuffix }} ) {
84
+ $versionNumber += "-preview"
82
85
}
83
86
$jsonData = @{
84
87
ModuleName = "${{ parameters.ServiceName }}"
@@ -113,10 +116,10 @@ stages:
113
116
"@
114
117
$readmePath = "OOB/README.md"
115
118
$content | Out-File -FilePath $readmePath
116
- if (${{ parameters.BumpUpVersion }} -eq $true) {
117
- echo "##vso[task.setvariable variable=BumpUpBranch]codeoob/${{ parameters.ServiceName }}"
119
+ if ($$ {{ parameters.BumpUpVersion }} -eq $true) {
120
+ echo "##vso[task.setvariable variable=BumpUpBranch;isOutput=true ]codeoob/${{ parameters.ServiceName }}"
118
121
} else {
119
- echo "##vso[task.setvariable variable=BumpUpBranch]none"
122
+ echo "##vso[task.setvariable variable=BumpUpBranch;isOutput=true ]none"
120
123
}
121
124
122
125
- task : PowerShell@2
@@ -132,6 +135,8 @@ stages:
132
135
PathtoPublish : OOB
133
136
ArtifactName : OOB
134
137
- stage : Codesign
138
+ variables :
139
+ BumpUpBranch : $[stageDependencies.OOBRelease.BumpUpVersion.outputs['outputinfo.BumpUpBranch']]
135
140
dependsOn : OOBRelease
136
141
jobs :
137
142
- template : ./code-sign.yml
0 commit comments