Skip to content

Commit 994c69b

Browse files
committed
Merge pull request #685 from pascalberger/RestructureBuildServerDoc
Restructure build server documentation
2 parents 73beefa + 080419f commit 994c69b

16 files changed

+41
-36
lines changed

docs/build-server-support.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Build Server Support
2+
GitVersion has support for quite a few build servers out of the box. Currently we support:
3+
4+
- [AppVeyor](build-server-support/build-server/appveyor.md)
5+
- [Bamboo](build-server-support/build-server/bamboo.md)
6+
- [Continua CI](build-server-support/build-server/continua.md)
7+
- [Jenkins](build-server-support/build-server/jenkins.md)
8+
- [MyGet](build-server-support/build-server/myget.md)
9+
- [Octopus Deploy](build-server-support/build-server/octopus-deploy.md)
10+
- [TeamCity](build-server-support/build-server/teamcity.md)
11+
- [Team Build (TFS)](build-server-support/build-server/teambuild.md)
12+
- [TFS Build vNext](build-server-support/build-server/tfs-build-vnext.md)
13+
14+
When GitVersion.exe is run with the `/output buildserver` flag instead of outputting Json it will export variables to the current build server.
15+
For instance if you are running in TeamCity after you run `GitVersion /output buildserver` you will have the `%system.GitVersion.SemVer%` available for you to use
16+
17+
When running in MSBuild either from the [MSBuild Task](usage/msbuild-task) or by using the `/proj myproject.sln` parameter, GitVersion will make the MSBuild variables available in the format `$(GitVersion_SemVer)`.

docs/more-info/build-server-setup/tfs-build-vnext.md renamed to docs/build-server-support/build-server/tfs-build-vnext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ See [Variables](/more-info/variables/) for more info on the variables.
5252

5353
#### Known limitations
5454
* Due to [current limitations in TFS2015 On-Prem](https://github.com/Microsoft/vso-agent-tasks/issues/380) it's currently not possible to automatically set the build version in TFS2015 On-Prem. Instead a warning similar to `##[warning]Unable to process logging event:##vso[build.updatebuildnumber 1.0.0-unstable.1` is logged.
55-
* Due to a know limitation in TFS 2015 On-Prem it's currently not possible to use variables added during build in inputs of subsequent build tasks, since the variables are processed at the beginning of the build.
55+
* Due to a known limitation in TFS 2015 On-Prem it's currently not possible to use variables added during build in inputs of subsequent build tasks, since the variables are processed at the beginning of the build.
5656
As a workaround environment variables can be used in custom scripts.
5757

5858
## Create a NuGet package in TFS

docs/more-info/version-increments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you are using GitFlow then builds off the `develop` branch will actually *inc
1717
If you need to consume packages built from develop, we recommend publishing these packages to a separate NuGet feed as an alpha channel. That way you can publish beta/release candidate builds and only people who opt into the alpha feed will see the unstable pacakges.
1818

1919
### 2. Octopus deploy
20-
See [Octopus deploy](build-server-setup/octopus-deploy.md)
20+
See [Octopus deploy](build-server-support/build-server/octopus-deploy.md)
2121

2222
## Manually incrementing the version
2323
With v3 there are multiple approaches.

docs/usage/command-line.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Switches are available with `GitVersion /?`
1212

1313
By default GitVersion returns a json object to stdout containing all the [variables](more-info/variables.md) which GitVersion generates. This works great if you want to get your build scripts to parse the json object then use the variables, but there is a simpler way.
1414

15-
`GitVersion.exe /output buildserver` will change the mode of GitVersion to write out the variables to whatever build server it is running in. You can then use those variables in your build scripts or run different tools to create versioned NuGet packages or whatever you would like to do. See [build servers](build-server-support.md) for more information about this.
15+
`GitVersion.exe /output buildserver` will change the mode of GitVersion to write out the variables to whatever build server it is running in. You can then use those variables in your build scripts or run different tools to create versioned NuGet packages or whatever you would like to do. See [build servers](build-server-support/build-server-support.md) for more information about this.
1616

1717
## Inject version metadata into the assembly
1818
`GitVersion.exe /updateassemblyinfo` will recursively search for all `AssemblyInfo.cs` files in the git repo and update them.

docs/usage/msbuild-task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ After `GitVersionTask.GetVersion` has executed the properties can be used in the
8686

8787
Task Name: `GitVersionTask.WriteVersionInfoToBuildLog`
8888

89-
If, at build time, it is detected that the build is occurring inside a Build Server server then the [variables](more-info/variables.md) will be written to the build log in a format that the current Build Server can consume. See [Build Server Support](build-server-support.md).
89+
If, at build time, it is detected that the build is occurring inside a Build Server server then the [variables](more-info/variables.md) will be written to the build log in a format that the current Build Server can consume. See [Build Server Support](build-server-support/build-server-support.md).
9090

9191
## My Git repository requires authentication. What do I do?
9292

docs/usage/usage.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
There are two main ways to consume GitVersion, the first is by running GitVersion.exe. The second is an MSBuild task. The MSBuild task is really easy to get up and running, simply install GitVersionTask from NuGet and it will integrate into your project and write out variables to your build server if it's running on one. The exe offers more options and works for not just .net projects.
44

5-
- [A Command Line tool](command-line.md)
6-
- [An MSBuild Task](msbuild-task.md)
7-
- [A NuGet Library package](nuget-library.md)
8-
- [A Ruby Gem](gem.md)
5+
6+
- [Using the Command Line tool](command-line.md)
7+
- [Using the MSBuild Task](msbuild-task.md)
8+
- [Using the NuGet Library package](nuget-library.md)
9+
- [Using the Ruby Gem](gem.md)
10+
11+
12+
There exist also wrappers around the [Command Line tool](command-line.md) for several build servers. See [Build server support](build-server-support/build-server-support.md) for details.

mkdocs.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,19 @@ pages:
1010
- MSBuild Task: usage/msbuild-task.md
1111
- NuGet Library: usage/nuget-library.md
1212
- Gem: usage/gem.md
13-
- Build Server Support: build-server-support.md
1413
- Configuration: configuration.md
14+
- Build Server Support:
15+
- Introduction: build-server-support/build-server-support.md
16+
- Build Servers:
17+
- AppVeyor: build-server-support/build-server/appveyor.md
18+
- Bamboo: build-server-support/build-server/bamboo.md
19+
- Continua CI: build-server-support/build-server/continua.md
20+
- Jenkins: build-server-support/build-server/jenkins.md
21+
- MyGet: build-server-support/build-server/myget.md
22+
- Octopus Deploy: build-server-support/build-server/octopus-deploy.md
23+
- TeamCity: build-server-support/build-server/teamcity.md
24+
- Team Build (TFS): build-server-support/build-server/teambuild.md
25+
- TFS Build vNext: build-server-support/build-server/tfs-build-vnext.md
1526
- Examples: examples.md
1627
- FAQ: faq.md
1728
- Why?: why.md
@@ -24,16 +35,6 @@ pages:
2435
- Version incrementing: more-info/version-increments.md
2536
- Version sources: more-info/version-sources.md
2637
- Incrementing per commit: more-info/incrementing-per-commit.md
27-
- Build Servers:
28-
- AppVeyor: more-info/build-server-setup/appveyor.md
29-
- TeamCity: more-info/build-server-setup/teamcity.md
30-
- MyGet: more-info/build-server-setup/myget.md
31-
- Bamboo: more-info/build-server-setup/bamboo.md
32-
- Jenkins: more-info/build-server-setup/jenkins.md
33-
- Continua CI: more-info/build-server-setup/continua.md
34-
- Team Build (TFS): more-info/build-server-setup/teambuild.md
35-
- TFS Build vNext: more-info/build-server-setup/tfs-build-vnext.md
36-
- Octopus Deploy: more-info/build-server-setup/octopus-deploy.md
3738

3839
- Git branching strategies:
3940
- Home: git-branching-strategies/index.md

0 commit comments

Comments
 (0)