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

Notify by buildtype is not usable #139

Open
johnwenaus opened this issue May 10, 2017 · 2 comments
Open

Notify by buildtype is not usable #139

johnwenaus opened this issue May 10, 2017 · 2 comments

Comments

@johnwenaus
Copy link

A project may have a number of build types. For instance

  • Build
  • DeployToSandbox
  • DeployToProduction.

I'd like to send a notification to a particular slack channel only if a deployment to Production is successful

In the current implementation, we have to specify the buildtype id. Unfortunately the buildtype id is an internal id created by teamcity. This id is not visible even via https://teamcity/app/rest/projects/myProject/buildTypes/DeployToProduction

It would be great if the plugin support

      <build-types enabled-for-all="false" enabled-for-subprojects="true">
        <build-type name="myproject_DeployToProduction" />
      </build-types>

instead of

      <build-types enabled-for-all="false" enabled-for-subprojects="true">
        <build-type id="{teamcity internal id}" />
      </build-types>
@PeteGoo
Copy link
Owner

PeteGoo commented May 14, 2017

@johnwenaus this is possible. You should see a tab on the build configuration page

@github-abcde
Copy link

I'm experiencing the same problem. Configuring the notification settings using the Teamcity web-interface works fine, however, I'm deploying and configuring Teamcity automatically by placing the right (templated) files in the right places, and do not have the ability to retrieve the internal Teamcity build-type-ID (for example using the Teamcity API). When using the API to list the currently configured buildTypes, the id-field is filled with the named ID, and not the internal ID (as johnwenaus also mentioned).

So, to reiterate, is it possible to specify the buildType ID by name instead of internal ID, without using the webinterface?

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

No branches or pull requests

3 participants