Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify teamcity docs #112

Open
trondhindenes opened this issue Mar 6, 2018 · 5 comments
Open

clarify teamcity docs #112

trondhindenes opened this issue Mar 6, 2018 · 5 comments

Comments

@trondhindenes
Copy link

According to the docs, the teamcity integration needs a "build configuration id". Since this is something attached to each project it doesn't make sense - I would assume that node-build-monitor is able to monitor all builds on a teamcity server and not just a single one? I've tried setting it to "*" but that didn't do anything. It would be great if configuration items were clarified (both in terms of what they mean, and whether or not they're optional)

@trondhindenes
Copy link
Author

trondhindenes commented Mar 6, 2018

From what I can see in the code, it looks like it's requesting a certain "id"
/httpAuth/app/rest/buildTypes/id:' + self.configuration.buildConfigurationId + but that kinda doesn't make sense to me, as the default should be to list all build configs? Teamcity's rest api is flexible enough to support some filtering, but not when id segment is a hardcoded part of the request url.

@marcells
Copy link
Owner

marcells commented Mar 6, 2018

We have to keep the option to specify a concrete build configuration. It could be that someone only wants to get one of hundreds configured builds on the server.

What we could do is allowing to omit the build configuration id config parameter. In that case we return all builds. So we are compatible to existing setups of the build monitor.

I don't have a Team City instance running. Do you want to make a PR with the change?

@trondhindenes
Copy link
Author

I guess I'm a bit surprised that given other users of this project (from other issues I can see that there's at least a few teamcity shops) that this hasn't come up before. I'm simply not able to understand how this could work at all without a configuration block per project (We have about 200 of those) :-|. I'll take a closer look at this.

@trondhindenes
Copy link
Author

trondhindenes commented Mar 7, 2018

hm looking more at this it seems to me that the entire teamcity is geared towards having one config item per project (correct me if I'm wrong), while others (looking at Gitlab) are designed towards multiple ones. I don't usually code in JS so its a bit beyond me I'm afraid.

@marcells
Copy link
Owner

marcells commented Mar 7, 2018

You are right. It's up to the implementation of the plugin how it can be configured. If there wasn't a need before, so it could be that it was not implemented yet for TeamCity.

The code of the TeamCity service is quite straight forward and has just 160 LOC. I can try to implement it, too. But this could take some time, cause I need to setup and configure a TeamCity instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants