Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Jios/slack_python_script

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
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

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.