Remote service trigger with mail
Project description
Mail Trigger
Requirements
- Python (3.7+)
- pip
- python-dev
Installation
On Ubuntu / Mint, install Mail Trigger with the following commands:
sudo apt update
sudo apt install python3-dev python3-pip python3-setuptools
sudo pip3 install mailtrigger
On OS X, install Mail Trigger via Homebrew (or via Linuxbrew on Linux):
TBD
On Windows, install Mail Trigger with the following commands:
TBD
Updating
pip3 install mailtrigger --upgrade
Settings
Several Mail Trigger parameters can be set in the directory config.
An example of configuration in mailer.json:
{
"debug": false,
"pop3": {
"host": "pop.example.com",
"pass": "pass",
"port": 995,
"ssl": true,
"user": "user"
},
"smtp": {
"host": "smtp.example.com",
"pass": "pass",
"port": 465,
"ssl": true,
"user": "user"
}
}
An example of configuration in scheduler.json:
{
"interval": 10
}
An example of configuration in trigger.json:
{
"gerrit": {
"host": "localhost",
"port": 8080
},
"jenkins": {
"host": "localhost",
"port": 8081
},
"jira": {
"host": "localhost",
"port": 8082
}
}
Usage
Title
[trigger]: Write your description here
Note: [trigger]
is the reserved word in title
Recipient
The recipient is mail receiver as Mail Trigger.
Content
Gerrit Trigger
@gerrit help
@gerrit list
@gerrit restart <host>
@gerrit start <host>
@gerrit stop <host>
@gerrit verify <host>
@gerrit review <host>:<port>
[--project <PROJECT> | -p <PROJECT>]
[--branch <BRANCH> | -b <BRANCH>]
[--message <MESSAGE> | -m <MESSAGE>]
[--notify <NOTIFYHANDLING> | -n <NOTIFYHANDLING>]
[--submit | -s]
[--abandon | --restore]
[--rebase]
[--move <BRANCH>]
[--publish]
[--json | -j]
[--delete]
[--verified <N>] [--code-review <N>]
[--label Label-Name=<N>]
[--tag TAG]
{COMMIT | CHANGEID,PATCHSET}
Jenkins Trigger
@jenkins build <host>:<port> JOB [--parameter <PARAMETER> | -p <PARAMETER>]
@jenkins help
@jenkins list
@jenkins list <host>:<port>
@jenkins query <host>:<port> JOB
@jenkins rebuild <host>:<port> JOB
@jenkins stop <host>:<port> JOB
@jenkins verify <host>:<port> JOB
Jira Trigger
TBD
Trigger Help
@help
License Apache
Project License can be found here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mailtrigger-1.0.0.tar.gz
(8.7 kB
view hashes)
Built Distributions
Close
Hashes for mailtrigger-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3c139cbe365ece90d533738a4f7cb5a8bc54e8b51d1041feda3b2d8defe02ba |
|
MD5 | 0a81b7a8089d179edb46acdd677970a9 |
|
BLAKE2b-256 | 3cdf2bafcea831d83da04db3a72f505dce6d70f6f8f7acd4f81ba2b7ae7b5e64 |
Close
Hashes for mailtrigger-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f77ac8081e3b4625dd52c76563b28079a37586e10a2c258f8cc2e94c026a9f |
|
MD5 | 5389d1c0fc81b2dec8ae515eb55094b0 |
|
BLAKE2b-256 | b12c9a5c2bea173608b3aab3549db79f369824ff18b7e806774a060263643c0d |