Skip to content

Commit 0501205

Browse files
author
Pascal Berger
committed
Have build server documentation together in the documentation
1 parent 73beefa commit 0501205

15 files changed

+32
-31
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/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

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)