{
name = ".*"
stage = ".*"
state = "failed"
}
should show you notifications for all failed stages, though. Across
pipelines.
On Friday, March 8, 2019 at 5:20:36 AM UTC+5:30, Aravind SV wrote:
>
> Hello James,
>
> I've never used this plugin - and now that it's working, the GitHub repo
> for the plugin might be a better location to ask. However, based on a quick
> glance, it looks like you're expecting to see notifications for the
> pipeline ImgProcSvc. However, your pipeline rules (in the plugin's config)
> is set to:
>
> pipelines = [
> {
> name = "*gocd-slack-build*"
> stage = "build"
> group = ".*"
> state = "failed|passed"
> webhookUrl = "slack webhook"
> },
> {
> name = ".*"
> stage = ".*"
> state = "failed"
> }
> ]
>
>
> The pipeline name it's looking for is: gocd-slack-build (from the README,
> I assume). You'll need to customize it, I think.
>
> Cheers,
> Aravind
>
> On Thursday, March 7, 2019 at 10:42:41 PM UTC+5:30, James Wright wrote:
>>
>> Ok I was able to build a jar with with Aravind's change and I am no
>> longer getting the error so now I'm in the home stretch. Here's what I'm
>> getting in my log
>>
>> 2019-03-07 09:56:58,881 INFO [Thread-79] GoNotificationPlugin:73 -
>> Configuration file found using CRUISE_SERVER_DIR at C:\Program Files
>> (x86)\Go Server\go_notify.conf
>> 2019-03-07 09:56:59,068 INFO [Timer-0] GoNotificationPlugin:73 - Loading
>> configuration file
>> 2019-03-07 10:00:07,662 INFO [195@MessageListener for
>> PluginNotificationMessageListener] GoNotificationPlugin:73 -
>> ImgProcSvc/37/build/1 has Building/Unknown
>> 2019-03-07 10:00:07,662 WARN [195@MessageListener for
>> PluginNotificationMessageListener] PipelineListener:98 - Couldn't find any
>> matching rule for ImgProcSvc/build with status=Building
>> 2019-03-07 10:01:21,459 INFO [195@MessageListener for
>> PluginNotificationMessageListener] GoNotificationPlugin:73 -
>> ImgProcSvc/37/build/1 has Passed/Passed
>> 2019-03-07 10:01:21,459 INFO [195@MessageListener for
>> PluginNotificationMessageListener] Server:73 - Fetching
>> http://10.32.16.225:8153/go/api/pipelines/ImgProcSvc/history
>> 2019-03-07 10:01:22,521 WARN [195@MessageListener for
>> PluginNotificationMessageListener] PipelineListener:98 - Couldn't find any
>> matching rule for ImgProcSvc/build with status=Passed
>> 2019-03-07 10:05:33,974 INFO [195@MessageListener for
>> PluginNotificationMessageListener] GoNotificationPlugin:73 -
>> ImgProcSvc/38/build/1 has Building/Unknown
>> 2019-03-07 10:05:33,974 WARN [195@MessageListener for
>> PluginNotificationMessageListener] PipelineListener:98 - Couldn't find any
>> matching rule for ImgProcSvc/build with status=Building
>> 2019-03-07 10:06:40,240 INFO [195@MessageListener for
>> PluginNotificationMessageListener] GoNotificationPlugin:73 -
>> ImgProcSvc/38/build/1 has Passed/Passed
>> 2019-03-07 10:06:40,240 INFO [195@MessageListener for
>> PluginNotificationMessageListener] Server:73 - Fetching
>> http://10.32.16.225:8153/go/api/pipelines/ImgProcSvc/history
>> 2019-03-07 10:06:40,553 WARN [195@MessageListener for
>> PluginNotificationMessageListener] PipelineListener:98 - Couldn't find any
>> matching rule for ImgProcSvc/build with status=Passed
>>
>> and I am not getting any data in my slack channel
>>
>> On Tuesday, March 5, 2019 at 11:02:08 PM UTC-7, Aravind SV wrote:
>>>
>>> Hello James,
>>>
>>> > On Tue, Mar 5, 2019 at 2:56 PM James Wright <[email protected]>
>>> wrote:
>>> >
>>> > > Ok so I apparently did not have the build notifier plugin installed
>>> so
>>> > > that was a huge issue right there. Now I get the following error:
>>> > >
>>> > > Notification update failed for plugin: slack.notifier05 Mar, 2019 at
>>> > > 15:49:10 Local Time
>>> > >
>>> > > Interaction with plugin with id 'slack.notifier' implementing
>>> > > 'notification' extension failed while requesting for 'stage-status'.
>>> > > Reason: [javax/xml/bind/DatatypeConverter]
>>>
>>> I'd solved a similar issue on a different plugin a while ago. I made
>>> that change and mentioned it on the GitHub issue. If you're able to verify
>>> it, please take a look so that I can submit a PR.
>>>
>>> If not, I'll try and verify it myself at some point.
>>>
>>> Cheers,
>>> Aravind
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.