<commit_before># Jenkins Monitor

[![Build status](https://img.shields.io/wercker/ci/55fb0370ee52f86b6d055b05.svg "Build status")](https://app.wercker.com/project/bykey/6b1943c59a2f5b55beac66aa0f90d346)
[![Dependency status](https://img.shields.io/david/Starefossen/jenkins-monitor.svg "Dependency status")](https://david-dm.org/Starefossen/jenkins-monitor)
[![Join the chat](https://img.shields.io/badge/irc-join%20chat-blue.svg "Join the chat")](https://webchat.freenode.net/?channels=node-build)


Jenkins Monitoring and Alert solution build to monitor the official Node.js CI
server operated by [nodejs/build](https://github.com/nodejs/build).

![Jenkins Monitor](assets/promo.png)

## Prerequisite

* Docker >= v1.8
* Docker Compose >= 1.3

## Environment

* `CRON_INTERVAL` - how often to run checks (ex. `0 0 */1 * * *`)
* `JENKINS_URL` - Jenkins Server URL to monitor

**IRC:**

* `IRC_CHANNEL` - IRC channel to post to
* `IRC_SERVER` - IRC server to post to
* `IRC_USER` - IRC user to post as

**Gitter:**

* `GITTER_WEBHOOK_URL` - Gitter Webhook URL

**Sendgrid:**

* `SENDGRID_USERNAME` - Sengrid email notification user name
* `SENDGRID_PASSWORD` - Sendgrid email notification password
* `SENDGRID_RECIPIENTS` - Sendgrid email notification recipients (comma separated)
* `SENDGRID_SENDER` - Sendgrid email notification sender

## Test

```
docker-compose run --rm dev npm test
```

## Start

```
docker-compose run --rm dev npm start
```<commit_msg>docs(readme): update environment variables list<commit_after># Jenkins Monitor

[![Build status](https://img.shields.io/wercker/ci/55fb0370ee52f86b6d055b05.svg "Build status")](https://app.wercker.com/project/bykey/6b1943c59a2f5b55beac66aa0f90d346)
[![Dependency status](https://img.shields.io/david/Starefossen/jenkins-monitor.svg "Dependency status")](https://david-dm.org/Starefossen/jenkins-monitor)
[![Join the chat](https://img.shields.io/badge/irc-join%20chat-blue.svg "Join the chat")](https://webchat.freenode.net/?channels=node-build)


Jenkins Monitoring and Alert solution build to monitor the official Node.js CI
server operated by [nodejs/build](https://github.com/nodejs/build).

![Jenkins Monitor](assets/promo.png)

## Prerequisite

* Docker >= v1.8
* Docker Compose >= 1.3

## Environment

* `CRON_INTERVAL` - how often to run checks (ex. `0 0 */1 * * *`)
* `OFFLINE_THRESH` - how many times offline befor notifying

**Jenkins:**

* `JENKINS_URL` - Jenkins Server URL to monitor
* `JENKINS_USER` - Jenkins user name
* `JENKINS_AUTH` - Jenkins user auth token

**IRC:**

* `IRC_CHANNEL` - IRC channel to post to
* `IRC_SERVER` - IRC server to post to
* `IRC_USER` - IRC user to post as

**Gitter:**

* `GITTER_WEBHOOK_URL` - Gitter Webhook URL

**Sendgrid:**

* `SENDGRID_USERNAME` - Sengrid email notification user name
* `SENDGRID_PASSWORD` - Sendgrid email notification password
* `SENDGRID_RECIPIENTS` - Sendgrid email notification recipients (comma separated)
* `SENDGRID_SENDER` - Sendgrid email notification sender

## Test

```
docker-compose run --rm dev npm test
```

## Start

```
docker-compose run --rm dev npm start
```
{'fraction_non_alphanumeric': 0.14336226293796206, 'fraction_numerical': 0.028286724525875925, 'mean_word_length': 4.882797731568998, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1105797', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1099, 'n_words': 261}