Started as a necessity to upload android apk to slack.
- Create a Slack account and obtain your token. To obtain a token go to
https://api.slack.com/custom-integrations/legacy-tokens
, and then create oncreate token
- Install the plugin on Jenkins server. Go to
Manage Jenkins -> Manage Plugins
and selectSlack Uploader
from the list. - Configure your Jenkins job as a Post-Build action.
- Enter the channel and the file path of the files you want to upload. Note that you should provide a full path to the like
/var/jenkins_home/workspace/Android/YourJobName/app/build/outputs/apk/release/app-release.apk
- Start a build and watch as the magic happens.