You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/azure/overview.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
-
Versioning when using Git, solved. GitVersion looks at your Git history and works out the [semantic version](http://semver.org) of the commit being built.
1
+
# GitTools bundle for Azure Pipelines
2
+
3
+
Versioning when using Git, solved. GitVersion looks at your Git history and works out the [semantic version](https://semver.org) of the commit being built.
2
4
3
5
It works with most branching strategies but has been designed mainly around GitFlow and GitHubFlow (pull request workflow). The calculated version numbers can then be accessed through variables such as `$(GitVersion.FullSemVer)` and `$(GitVersion.SemVer)`. It is also very configurable to allow it to work with most release workflows!
<summary>Calculate the version for the build using a config file named **VersionConfig.yml** in the root of the working folder.</summary>
161
+
<summary>Calculate the version for the build using a config file named <b>VersionConfig.yml</b> in the root of the working folder.</summary>
156
162
157
163
```yaml
158
164
steps:
@@ -164,12 +170,13 @@ steps:
164
170
useConfigFile: true
165
171
configFilePath: 'VersionConfig.yml'
166
172
```
173
+
167
174
</details>
168
175
169
176
### Example 4
170
177
171
178
<details>
172
-
<summary>Show the effective configuration for GitVersion by running the **/showConfig** command (passed as an additional argument).</summary>
179
+
<summary>Show the effective configuration for GitVersion by running the <b>/showConfig</b> command (passed as an additional argument).</summary>
173
180
174
181
```yaml
175
182
steps:
@@ -180,6 +187,7 @@ steps:
180
187
inputs:
181
188
additionalArguments: '/showConfig'
182
189
```
190
+
183
191
</details>
184
192
185
193
### Example 5
@@ -197,6 +205,7 @@ steps:
197
205
disableCache: true
198
206
disableNormalization: true
199
207
```
208
+
200
209
</details>
201
210
202
211
### Example 6
@@ -213,6 +222,7 @@ steps:
213
222
inputs:
214
223
updateAssemblyInfo: true
215
224
```
225
+
216
226
</details>
217
227
218
228
### Example 7
@@ -231,17 +241,20 @@ steps:
231
241
update-build-number=false
232
242
next-version=2.0.1
233
243
```
244
+
234
245
</details>
235
246
236
247
## Output usage
237
248
238
-
The outputs can be accessed using the syntax `$(<id>.<outputName>)` or `$(<id>.GitVersion_<OutputName>)`, where `<id>` is the ID assigned to the step that calls the action, by subsequent steps later in the same job.
249
+
The outputs can be accessed using the syntax `$(<id>.<outputName>)` or `$(<id>.GitVersion_<OutputName>)`,
250
+
where `<id>` is the ID assigned to the step that calls the action, by subsequent steps later in the same job.
239
251
240
252
The action also creates environment variables of the form `$(<outputName>)` or `$(GitVersion_<OutputName>)` for use by other steps in the same job.
241
253
242
254
The multi-job output variables can be accessed across jobs and stages, in both conditions and variables.
243
255
244
-
**GitVersion also automatically updates the pre-defined Build variable `Build.BuildNumber`.** You can disable the default behavior by setting the `update-build-number` to `false` in the configuration file or by using the `overrideConfig` input.
256
+
**GitVersion also automatically updates the pre-defined Build variable `Build.BuildNumber`.**
257
+
You can disable the default behavior by setting the `update-build-number` to `false` in the configuration file or by using the `overrideConfig` input.
0 commit comments