I just tried the new (available with M6) build-announcements plugin. Works like I always had expected the announce plugin to work, but if I don’t have the notify-send thingy installed on Ubuntu, my build will fail.
I would expect it not to fail just because the notification couldnt be sent to my desktop. I dont want to use the --continue flag for this either as it is quite general.
Ok, I got it again, this time when using gradle (m6/7) with Jenkins (as user jenkins) which most likely lacks some system gtk requirements and causes the build to succeed with a failure, which is quite inconvenient as jenkins will recognize this as failed built…
16:14:14.892 [DEBUG] [org.gradle.process.internal.ProcessBuilderFactory] creating process builder for command ‘/usr/bin/notify-send’ 16:14:14.892 [DEBUG] [org.gradle.process.internal.ProcessBuilderFactory] in directory /var/lib/jenkins/workspace/mopay20 16:14:14.893 [DEBUG] [org.gradle.process.internal.ProcessBuilderFactory] with argument#0 = Build successful 16:14:14.893 [DEBUG] [org.gradle.process.internal.ProcessBuilderFactory] with argument#1 = 12 tasks executed 16:14:14.926 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Started command ‘/usr/bin/notify-send’. 16:14:14.975 [ERROR] [system.err]