1.0.0 • Published 10 years ago

hubot-jenkins-job-status-change v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

hubot-jenkins-job-status-change

hubot script for jenkins to change jobs status, disable or enable on batch processing.

Description

Allows hubot to disable the specify jenkins's jobs, or enable it from hubot.
The target jobs for this script are defined in environment variable.

Usage

disable jobs

> hubot jenkins status disable
> hubot j s disable

enable jobs

> hubot jenkins status enable
> hubot j s enable

list target jobs changed status by this script

> hubot jenkins status list
> hubot j s list

Install

$ cd hubot_directory
$ npm install --save hubot-jenkins-job-status-change

Then add "hubot-jenkins-job-status-change" to external-scripts.json.

["hubot-jenkins-job-status-change"]

Configuration

This script requires the following environment variables.

HUBOT_JENKINS_USER_NAME: User name for jenkins.
HUBOT_JENKINS_PASSWORD: Passwordf for jenkins.
HUBOT_JENKINS_URL: Jenkins root url. e.g. "http://127.0.0.1:8080/jenkins"
HUBOT_JENKINS_JOBS: Jenkins job name you want to change status by this script.You can specify multiple jobs, comma delimited. e.g. "test1, test2, hoge"

If you use hubot under proxy environment, then you specify proxy settings.

HTTP_PROXY: Proxy settings. "http://【UserName】:【password】@【ProxyHost】:【ProxyPort】/"

$ HUBOT_JENKINS_USER_NAME="user" \
HUBOT_JENKINS_PASSWORD="password" \
HUBOT_JENKINS_URL="http://127.0.0.1:8080/jenkins" \
HUBOT_JENKINS_JOBS="test1, test2, test3" \
./bin/hubot
```

## Licence

MIT

## Author

[mid0111](https://github.com/mid0111)
1.0.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago