File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
docs/build-server-support/build-server Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Bamboo
2
- If you use Bamboo then you can install * GitVersion for Bamboo* which gives you a GitVersion task in Bamboo.
2
+ If you use Bamboo then you will have to use GitVersion from the command line, as there is no actively supported app.
3
+ You can use the "Inject Bamboo Variables" task to read the GitVersion output back into Bamboo.
4
+ Below is a Linux example using the [ .NET Core GitVersion global tool] ( https://www.nuget.org/packages/GitVersion.Tool/ ) .
3
5
4
- - [ Blog Post] ( http://carolynvanslyck.com/blog/2015/03/gitversion-for-bamboo )
5
- - [ Project link] ( http://carolynvanslyck.com/projects/gitversion )
6
- - [ Download] ( https://marketplace.atlassian.com/plugins/com.carolynvs.gitversion )
7
- - [ Source] ( http://carolynvanslyck.com/projects/gitversion )
8
- - [ Issues] ( http://jira.carolynvanslyck.com/browse/GITVER )
6
+ ## Example
7
+
8
+ ### Task: Script
9
+
10
+ ** Script body**
11
+ ``` bash
12
+ ~ /.dotnet/tools/dotnet-gitversion > gitversion.txt
13
+ sed -i ' 1d;26d;s/ //;s/"//g;s/,//;s/:/=/' gitversion.txt
14
+ ```
15
+
16
+ ### Task: Inject Bamboo variables Configuration
17
+ ** Required Properties**
18
+ - __ Path to properties file__ : gitversion.txt
19
+ - __ Namespace__ : GitVersion
20
+ - __ Scope of the Variables__ : Result
You can’t perform that action at this time.
0 commit comments