<commit_before># Jenkins Stop Light #

This little toy app will query any number of Jenkins servers and display the last build status for all jobs.

Job status is displayed by a Stop Light image with the appropriate colored light lit up.

The screen will refresh after 10 seconds and repeat until you close the window.

## Use ##

Run the app with php 5.4 or newer built in server.

```php -S localhost:8080 -t public```

Feel free to use a real webserver :-)

Open your browser to:
```http://localhost:8080/jenkins/refresh/15```

Your screen will refresh every 15 seconds.

## Build ##

```composer install```

## Configure ##

Create app/configs/.env (see app/configs/.env.sample) and add your jenkins server urls as a comma separated list to JENKINS_SERVERS.

Example:

```JENKINS_SERVERS="url1,url2,urlN"```


Ensure `var/` exists and is web writeable.

```mkdir var```

This app does not use a database but you will need to initialize a dummy sqlite database to get it to run.

```mkdir db; touch db/slim_starter.sqlite```

## Credits ##

This project was built using [slim-starter-kit](https://github.com/augusthur/slim-starter-kit) with minor enhancements to support sqlite3 from yours truly. Help yourself to my version of the same which includes my sqlite3 support. You can get it [here](https://github.com/stuheiss/slim-starter-kit).

Jenkins API library courtesey of [jenkins-khan/jenkins-api](https://github.com/jenkins-khan/jenkins-php-api.git).

Stop Light art courtesy of
[green](http://www.clker.com/cliparts/6/e/9/d/11949849761176136192traffic_light_green_dan__01.svg.med.png)
[yellow](http://www.clker.com/cliparts/8/1/7/4/11949849782053089133traffic_light_yellow_dan_01.svg.med.png)
[red](http://www.clker.com/cliparts/1/f/a/2/11949849771043985234traffic_light_red_dan_ge_01.svg.med.png) at [www.clker.com](http://www.clker.com).

## Bugz ##
Jenkins API does not properly handle jenkins job names with embedded spaces.
<commit_msg>DOC update README<commit_after># Jenkins Stop Light #

This little toy app will query any number of Jenkins servers and display the last build status for all jobs.

Job status is displayed by a Stop Light image with the appropriate colored light lit up.

The screen will refresh after 10 seconds and repeat until you close the window.

## Use ##

Run the app with php 5.4 or newer built in server.

```php -S localhost:8080 -t public```

Feel free to use a real webserver :-)

Open your browser to:
**http://localhost:8080/jenkins/refresh/15**

Your screen will refresh every 15 seconds.

## Build ##

```composer install```

## Configure ##

Create app/configs/.env (see app/configs/.env.sample) and add your jenkins server urls as a comma separated list to JENKINS_SERVERS.

Example:
**JENKINS_SERVERS="url1,url2,urlN"**

Ensure `var/` exists and is web writeable.

```mkdir var```

This app does not use a database but you will need to initialize a dummy sqlite database to get it to run.

```mkdir db; touch db/slim_starter.sqlite```

## Credits ##

This project was built using [slim-starter-kit](https://github.com/augusthur/slim-starter-kit) with minor enhancements to support sqlite3 from yours truly. Help yourself to my version of the same which includes my sqlite3 support. You can get it [here](https://github.com/stuheiss/slim-starter-kit).

Jenkins API library courtesey of [jenkins-khan/jenkins-api](https://github.com/jenkins-khan/jenkins-php-api.git).

Stop Light art courtesy of
[green](http://www.clker.com/cliparts/6/e/9/d/11949849761176136192traffic_light_green_dan__01.svg.med.png)
[yellow](http://www.clker.com/cliparts/8/1/7/4/11949849782053089133traffic_light_yellow_dan_01.svg.med.png)
[red](http://www.clker.com/cliparts/1/f/a/2/11949849771043985234traffic_light_red_dan_ge_01.svg.med.png) at [www.clker.com](http://www.clker.com).

## Bugz ##
Jenkins API does not properly handle jenkins job names with embedded spaces.

{'fraction_non_alphanumeric': 0.11133914828116984, 'fraction_numerical': 0.04822986146741919, 'mean_word_length': 4.499294781382228, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 10, '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': '276006', 'n_tokens_mistral': 1428, 'n_tokens_neox': 1262, 'n_words': 424}