Slack Integration

Aaron D's Avatar

Aaron D

11 Jul, 2017 04:25 AM

I am trying to add slack notifications to my project but am getting this error.

Deploying using Slack provider
The requested service 'Slack (Appveyor.Deploy.IDeploymentProvider)' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.

Any ideas?

  1. 1 Posted by Ilya Finkelshte... on 11 Jul, 2017 04:56 AM

    Ilya Finkelshteyn's Avatar

    Hi Aaron,

    Could you please share your configuration in YAML format (use Export YAML) if you use UI. Feel free to delete all secrets.

    Ilya.

  2. 2 Posted by Aaron D on 11 Jul, 2017 03:04 PM

    Aaron D's Avatar

    Here is the full config.

    version: 5.0.{build}
    skip_tags: true
    image: Visual Studio 2017
    before_build:
    - nuget restore
    configuration:
    - Release
    build:
      project: Polymer2RewriteProvider.sln
      verbosity: minimal
    artifacts:
    - path: Polymer2RewriteProvider\bin\Release\Polymer2RewriteProvider5.dll
      name: main
    - path: Polymer2RewriteProvider\bin\Release\UAParser.dll
      name: main
    deploy:
    - provider: GitHub
      auth_token:
        secure: 73BMyeWNs+Y0cyNA2FzsPiO4b93zn8pBdSO/oPc9GvT+znZj4vZAWF0bIu0G6G3i
      on:
        branch: master
    - provider: Slack
      incoming_webhook:
        secure: JhngXiwYl7JkEO7bo4Fh1k6rOy+lZ3dFxGFI4FL3Iep6ruC4WVIj35Px/jzc4Xi0GbEAGTjRQi8NZg4s0V0zZGn3IMRp+HNRdMzmh/Y492s=
      channel: '#build-success'
      on_build_success: true
      on_build_failure: false
      on_build_status_changed: false

  3. 3 Posted by Ilya Finkelshte... on 11 Jul, 2017 05:24 PM

    Ilya Finkelshteyn's Avatar

    I think that notifications: somehow got lost, it should be before - provider: Slack, otherwise AppVeyor tries to find deployment provider named Slack instead of notification one.

  4. 4 Posted by Aaron D on 11 Jul, 2017 08:56 PM

    Aaron D's Avatar

    Thanks! I missed that some how. Its working well now.

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:18 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Jun, 2025 08:45 PM
18 Jun, 2025 04:23 PM
13 Jun, 2025 04:36 PM
13 Jun, 2025 04:27 PM
13 Jun, 2025 07:20 AM

 

10 Jun, 2025 01:56 AM
09 Jun, 2025 07:11 PM
04 Jun, 2025 04:08 PM
27 May, 2025 05:48 PM
27 May, 2025 06:37 AM
27 May, 2025 06:31 AM