• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wooga / atlas-slack / 2
24%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2019 01:17PM UTC
Jobs 3
Files 4
Run time 1412298min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2

push

jenkins

Add first send message implementation (#1)

Description
===========

This patch adds the first simple implementation to send a message to a
slack channel via [incoming webhooks]. The plugin contains one simple
task type `Slack` which contains basic properties to send a simple text
message or a predefined json payload. The plugin adds a task with the
name "sendMessage" of type `Slack` to the task list. This task is
configurable through cli parameter and can be used as a simple shell
command.

Usage
=====

You need a valid webhook URL to send messages to slack. There are two
ways to create one.

* create a new app and enable incoming webhooks [see][getting-started]
* configure the custom integration **Incoming WebHooks**

Commandline Interface
---------------------

The help prints out all available switches `./gradlew help --task sendMessage`

```
Path
     :sendMessage

Type
     Slack (wooga.gradle.slack.tasks.Slack)

Options
     --color     A intend color
                 Available values are:
                      danger
                      good
                      hex color
                      warning

     --icon     The icon url for the message

     --message     The message to send

     --message-payload     A path to a slack message payload json

     --username     The username of the sender

     --webhook     The webhook url to send the message to

Description
     sends a slack message

Group
     slack
```

Simple Message
--------------

To send a simple message from commandline invoke the task `sendMessage`
with your message and the webhook url.

```bash
./gradlew sendMessage --message "test message" --webhook "https://hooks.slack.com/services/..."
```

Message with custom icon and username
-------------------------------------

You can provide an url to a icon and the username for the message sender

```bash
./gradlew sendMessage --message "test message" -... (continued)

97 of 99 relevant lines covered (97.98%)

1.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2.1 03 Apr 2019 01:17PM UTC 0
97.98
2 2.2 03 Apr 2019 01:20PM UTC 0
97.98
3 2.3 09 Dec 2021 07:36AM UTC 0
23.42
Source Files on build 2
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #2
  • 20c44834 on github
  • Prev Build on master (#1)
  • Next Build on master (#4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc