Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liemle3893/hubot-slack-jenkins-chatops
https://github.com/liemle3893/hubot-slack-jenkins-chatops
chatops ci-cd hubot jenkins jenkins-ci slack slackbot
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/liemle3893/hubot-slack-jenkins-chatops
- Owner: liemle3893
- Created: 2019-05-05T18:05:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T18:24:27.000Z (over 5 years ago)
- Last Synced: 2024-09-30T18:01:27.549Z (about 1 month ago)
- Topics: chatops, ci-cd, hubot, jenkins, jenkins-ci, slack, slackbot
- Language: CoffeeScript
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ci_bot
### Run locally
```shell
$ HUBOT_SLACK_VERIFICATION_TOKEN=XXX \
HUBOT_JENKINS_URL="http://@:" \
HUBOT_SLACK_TOKEN=xoxb-xxxx \
./bin/hubot --adapter slack
```### Docker run
```shell
$ docker run -it -p 8080:8080 --rm \
-e HUBOT_SLACK_VERIFICATION_TOKEN=${HUBOT_SLACK_VERIFICATION_TOKEN} \
-e HUBOT_JENKINS_URL=${HUBOT_JENKINS_URL} \
-e HUBOT_SLACK_TOKEN=${HUBOT_SLACK_TOKEN} \
saboteurkid/hubot-jenkins-slack
```### Environment variables
- `HUBOT_SLACK_VERIFICATION_TOKEN`: Visit your app basic information page and check app credentials. https://api.slack.com/apps//general? >> Verification Token
- `HUBOT_JENKINS_URL`: http://user:password@jenkins-host or http://user:token@jenkins-host (ex: http://admin:secret@localhost:8080)
- `HUBOT_SLACK_TOKEN`: Slack Bot Token. Find it in https://api.slack.com/apps//oauth? >> Bot User OAuth Access TokenThe following environment variables define the colors used for each build status:
- `HUBOT_JENKINS_COLOR_ABORTED`
- `HUBOT_JENKINS_COLOR_FAILURE`
- `HUBOT_JENKINS_COLOR_FIXED`
- `HUBOT_JENKINS_COLOR_STILL_FAILING`
- `HUBOT_JENKINS_COLOR_SUCCESS`
- `HUBOT_JENKINS_COLOR_DEFAULT`## Commands
- `hubot j(enkins) build`
- Lists Jenkins jobs to build
- `hubot j(enkins) build `
- Build jenkins job## Reference
- [https://github.com/subicura/hubot-slack-jenkins-chatops](https://github.com/subicura/hubot-slack-jenkins-chatops)
- [https://github.com/inkel/hubot-jenkins-slack](https://github.com/inkel/hubot-jenkins-slack)
- [https://github.com/github/hubot-scripts/blob/master/src/scripts/jenkins.coffee](https://github.com/github/hubot-scripts/blob/master/src/scripts/jenkins.coffee)