Commit Graph

1 Commits

Author SHA1 Message Date
Ryo Tagami 31adb51721 Be able to handle Slack Plugin 2.0 configuration
Slack Plugin 2.0 changed its configuration structure, and no longer
puts any configuration in properties section, instead puts all
configuration in publishers section. This commit will check the plugin
version, and if it detects version >= 2.0, it will put additional
configurations in publishers section. If it detects version < 2.0 or
did not detect version (happens when run in test mode without
specifying actual Jenkins instance), it will emit warning logs and not
add those configurations.

Change-Id: I6d7d92a5a6fd1ceff9b67721d6e401f2772d0575
Signed-off-by: Ryo Tagami <rtagami@airstrip.jp>
2016-04-23 01:00:45 +09:00