Skip to content

Commit 80ef4c9

Browse files
GrayPocketsarturcic
authored andcommitted
Remove reference to the "GitVersion for Bamboo" app and replaced it with command line instructions.
1 parent 588e7a4 commit 80ef4c9

File tree

1 file changed

+18
-6
lines changed
  • docs/build-server-support/build-server

1 file changed

+18
-6
lines changed
Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
# 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/).
35

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

0 commit comments

Comments
 (0)