Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/radarsh/terminator

An extremely lightweight terminal based Jenkins build monitor
https://github.com/radarsh/terminator

build-monitor jenkins python

Last synced: 4 months ago
JSON representation

An extremely lightweight terminal based Jenkins build monitor

Awesome Lists containing this project

README

        

# terminator

An extremely lightweight terminal based Jenkins build monitor written using Python.

Terminator is designed to be run on low powered computers such as Raspberry Pi. Often it is more efficient and practical
to use a terminal based build monitor than running a full fledged browser such as Epiphany or Firefox.

#### Linux Terminal

![Screenshot of Ubuntu Terminal](docs/images/ubuntu.png)

#### Windows Command Prompt

![Screenshot of Windows Command Prompt](docs/images/windows.png)

## Prerequisites

- Python 3.2 (but 3.4 is recommended)
- Pip 3

## Installation

Install all the requirements.

```bash
$ cd terminator
$ sudo pip install -r requirements.txt
```

## Usage

Terminator is highly customisable. It supports the following modes of operation:

#### To output the default view

```python
$ python -m terminator
```

#### To output another Jenkins view

```python
$ python -m terminator -v "view_name"
```

#### To output a list of specific jobs

```python
$ python -m terminator -j "job-1 job-2 job-3"
```

#### Change the polling interval

```python
$ python -m terminator -i INTERVAL
```

Here `INTERVAL` is in seconds.

#### If your Jenkins needs authentication

```python
$ python -m terminator -u USERNAME -p
```

#### Override terminal width

```python
$ python -m terminator -w WIDTH
```

Sometimes you might want to use `tput cols` to get the terminal width.

```python
$ python -m terminator -w "$(tput cols)"
```

#### Change the default font

```python
$ python -m terminator -f FONT
```

`FONT` can be one of the [pyfiglet fonts](https://github.com/pwaller/pyfiglet/tree/master/pyfiglet/fonts). Just make
sure that the font you choose does not break your terminal width.