Vault API setup
Moderator: SourceGear
Vault API setup
I recently downloaded Vault API to try and create some build scripts. How do I actually use it? Do I just browse to the folder in a command prompt and start typing in commands? Just need some info to get started.
Re: Vault API setup
The Vault Client API is a .NET-based API. You'll need a C# development environment (such as Visual Studio) to use it. Some people have used it with VB.NET, although that's not a well-worn path.rgkeefer wrote:I recently downloaded Vault API to try and create some build scripts. How do I actually use it? Do I just browse to the folder in a command prompt and start typing in commands? Just need some info to get started.
The source code to the Vault command-line client is provided as a sample of how to use the API. This file is the best place to get started.
You may not need to the client API. Many people just use the command-line client in batch files.
Eric Sink
Software Craftsman
SourceGear
Software Craftsman
SourceGear
I tried creating a batch file and used the following line to try to get latest version from a label....
vault getlabel -host vault.company.com -user "Build User" -password "MyPassword" -repository "QA" -destfolder "C:\builds\sourcetree" "$/Automated Tests" "My Label"
when I ran it said it did not recognize the "vault" command.
vault getlabel -host vault.company.com -user "Build User" -password "MyPassword" -repository "QA" -destfolder "C:\builds\sourcetree" "$/Automated Tests" "My Label"
when I ran it said it did not recognize the "vault" command.
I assume this is just a PATH problem. Perhaps you should include the full path to vault.exe, instead of just saying "vault"?rgkeefer wrote:I tried creating a batch file and used the following line to try to get latest version from a label....
vault getlabel -host vault.company.com -user "Build User" -password "MyPassword" -repository "QA" -destfolder "C:\builds\sourcetree" "$/Automated Tests" "My Label"
when I ran it said it did not recognize the "vault" command.
Eric Sink
Software Craftsman
SourceGear
Software Craftsman
SourceGear
-
- Posts: 1
- Joined: Mon Aug 22, 2016 4:01 am
Re: Vault API setup
Perhaps, this is a path problem, and you're not wrong. I'll be checking this issue again and again, as this is high time to write an article for my course of study. See you later!
[Moderator : edited out link]
[Moderator : edited out link]