Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hubot-js/gear-jenkins
A Hubot gear for handle Jenkins tasks
https://github.com/hubot-js/gear-jenkins
chatbot chatops hubot-gear hubot-js jenkins
Last synced: about 2 months ago
JSON representation
A Hubot gear for handle Jenkins tasks
- Host: GitHub
- URL: https://github.com/hubot-js/gear-jenkins
- Owner: hubot-js
- License: mit
- Created: 2016-08-18T01:56:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T02:17:54.000Z (over 6 years ago)
- Last Synced: 2024-11-15T21:31:35.706Z (2 months ago)
- Topics: chatbot, chatops, hubot-gear, hubot-js, jenkins
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gear-jenkins
- Size: 299 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gear-jenkins
[![Build Status](https://travis-ci.org/hubot-js/gear-jenkins.svg?branch=master)](https://travis-ci.org/hubot-js/gear-jenkins) [![npm](https://img.shields.io/npm/v/gear-jenkins.svg)](https://www.npmjs.com/package/gear-jenkins) [![Coverage Status](https://coveralls.io/repos/github/hubot-js/gear-jenkins/badge.svg?branch=master)](https://coveralls.io/github/hubot-js/gear-jenkins?branch=master) [![Code Climate](https://img.shields.io/codeclimate/github/hubot-js/gear-jenkins.svg)](https://codeclimate.com/github/hubot-js/gear-jenkins) [![dependencies Status](https://david-dm.org/hubot-js/gear-jenkins/status.svg)](https://david-dm.org/hubot-js/gear-jenkins) [![devDependencies Status](https://david-dm.org/hubot-js/gear-jenkins/dev-status.svg)](https://david-dm.org/hubot-js/gear-jenkins?type=dev)> A Hubot Gear for handle Jenkins tasks
This is a gear to add to [hubot.js](https://github.com/hubot-js/hubot.js) the ability to interact with [Jenkins](https://jenkins.io/). If you do not know the hubot.js or do not know what they are gears like this [click here](https://github.com/hubot-js/hubot.js/blob/master/README.md) for more details.
![start-job](media/start-job.gif)
## Starting
To use this gear you must first activate it with the command:
```
activate jenkins
```
![activate](media/activate-gear.gif)## Configurations
Some settings are required. They can be made by Slack using the following command:
```
configure jenkins
```
![configure](media/configure-gear.gif)These settings are stored, so you just need to do them once. But if necessary can make them again.
Below are the details about each setting:
### Jenkins url
If you use Jenkins without security (authentication) the authorization link is simply the access url. For example: `http://your.jenkins.com:8080`
If you use the Jenkins authentication, you need to find your access token. It can be obtained from `yourJenkinsUrl/me/configure`. See more details [here](https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients). In this case your authorization link should be in this format: `http://your_user:your_token@your_jenkins_url`
## Usage
When hubot.js starts you can call Jenkins of jobs writing the following sentence. Replace "my-deploy" with the name of your job.
```
hubot start job my-deploy
```![start-job](media/start-job.png)
## Development setup
- Fork and clone this project
- In the main directory run ```npm install```to install dependencies.
- Write your code. More Jenkins functions can be found [here](https://github.com/silas/node-jenkins).
- To run tests use ```npm test``` command## Meta
Robson Bittencourt - @rluizv - [email protected]Distributed under the MIT license. See [LICENSE](LICENSE) for more information.
https://github.com/hubot-js/gear-jenkins