Skip to content

Commit

Permalink
Add "useGuest" to configuration at TeamCity Configuration.
Browse files Browse the repository at this point in the history
Use "guestAuth" endpoint in TeamCity.js when "useGuest" configuration property is enabled.
  • Loading branch information
Alea81 committed Oct 24, 2018
1 parent 8005fbf commit bfb24e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,21 @@ Supports the [TeamCity](https://www.jetbrains.com/teamcity/) build service.
"branch": "master",
"authentication": "ntlm",
"username": "teamcity_username",
"password": "teamcity_password"
"password": "teamcity_password",
"useGuest": true
}
}
```

| Setting | Description
|-------------------------|-----------------------------------------------------------------------------------------
| `url` | The url to the TeamCity server (including the credentials without a trailing backslash).
| `url` | The url to the TeamCity server (including the credentials without a trailing backslash, if not the guest user is used).
| `buildConfigurationId` | The id of the TeamCity build configuration
| `branch` | The name of branch that needs to be monitored. Will monitor all branches if not specified.
| `authentication` | This option is only required if using 'ntlm' other option have no meaning
| `username` | Your TeamCity user name (if required)
| `password` | Your TeamCity password (if required)
| `useGuest` | Uses the guest user (if required)

#### Visual Studio Team Services and Team Foundation Server

Expand Down
3 changes: 2 additions & 1 deletion app/services/TeamCity.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = function () {
},
getBuildsUrl = function(status) {
var url = self.configuration.url +
'/httpAuth/app/rest/buildTypes/id:' + self.configuration.buildConfigurationId +
(self.configuration.useGuest === true ? '/guestAuth' : '/httpAuth') +
'/app/rest/buildTypes/id:' + self.configuration.buildConfigurationId +
'/builds';
var locators = [];
if(self.configuration.branch) {
Expand Down

0 comments on commit bfb24e7

Please sign in to comment.