File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
docs/input/docs/build-server-support/build-server Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,10 @@ using the [.NET Core GitVersion global tool](https://www.nuget.org/packages/GitV
10
10
11
11
## Example
12
12
13
- ### Task: Script
13
+ The first script can be run on a Linux build host, the second script can be run on
14
+ a Windows build host using Powershell. The build only needs one of the two.
14
15
15
- This script can be run on a Linux build host.
16
+ ### Task: Script
16
17
17
18
** Script body**
18
19
@@ -25,8 +26,6 @@ sed -i '1d;26d;s/ //;s/"//g;s/,//;s/:/=/' gitversion.txt
25
26
26
27
** Script body**
27
28
28
- This script can be run on a Windows build host using Powershell.
29
-
30
29
``` powershell
31
30
(dotnet gitversion | ConvertFrom-Json).PSObject.Properties | ForEach-Object { Write-Output "$($_.Name)=$($_.Value)" } | Out-File -Encoding UTF8 -FilePath gitversion.txt
32
31
```
You can’t perform that action at this time.
0 commit comments