Skip to content

Jios/slack_python_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Dependency

Python Slacker: https://github.com/os/slacker

Slack Test Token

URL: https://api.slack.com/docs/oauth-test-tokens

Requirement

# required
success      : BOOL true or false
success_title: STRING title for successful message
title_link   : STRING URL_link
error_msg    : STRING text or empty string

# optional
key1: value1
key2: value2
...

### Run Commands
```shell
# on Jenkins
python slack/slack.py ${SLACK_PYTHON_TOKEN} ${SLACK_CHANNEL} 'json/file/path'
# or
python slack/slack.py ${SLACK_PYTHON_TOKEN} ${SLACK_CHANNEL} 'properties/file/path'

# on terminal
python slack/slack.py xoxp-... '#build' 'json/file/path'
# or
python slack/slack.py xoxp-... '#build' 'properties/file/path'

.json File

{
	"success": true,
	"success_title": "Release successful",
	"title_link": "https://...",
	"error_msg": "",
	"version": "3.151",
	"name": "NAME"
}

.peroperties file

# required
success=true
success_title=Release successful
title_link=https://...
error_msg=

# optional
version=3.151
name=NAME

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages