thiagoxvo / jenkins-pipeline

A web app that provides a pipeline view to jenkins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jenkins Pipeline

Join the chat at https://gitter.im/viniciusgama/jenkins-pipeline Build Status

An attempt to display a set of builds running in Jenkins as a pipeline, a sequence of builds and its states.

Setup

The project was developed with ruby version ruby 2.3.0. The client is written in JavaScript and have its instructions on its README.

Files and Directories Dependencies

You gonna need to create a config directory and a .env file in order to run the project.

config directory

Create in the root of the project a config directory with your pipeline config files (yml) based on the example provided by one of the maintainers.

jenkins jobs configuration (folder)

In case of grouping your jobs in folders you can speficy the root folder on the configuration

In order to the single pipeline endpoint to work, you will have to add a attribute id to your config file. E.g: id: web-app will generate an endpoint '/api/piplelines/web-app'

.env file

Create an .env file in your repository with the following format

MONITOR_USERNAME=[YOUR JENKINS USERNAME]
MONITOR_TOKEN=[YOUR API TOKEN IN JENKINS]

Running Application

  • Install dependencies by running bundle install
  • Run the app by typing rackup

It will fireup a web server and can be accessed at localhost:4567

Docker

Running

Running Jenkins Pipeline on Docker is simple as docker run -p 4567:4567 -e MONITOR_USERNAME=<your-username> -e MONITOR_TOKEN=<your-token> -v <your-path-to-config>:/jenkins-pipeline/config jenkinspipeline/jenkins-pipeline

<your-path-to-config> Should be the full path to the folder where you have saved your pipeline configuration files.

Building

To build Jenkins Pipeline image locally on your docker host you can simple run docker build --rm -t jenkins-pipeline .

About

A web app that provides a pipeline view to jenkins


Languages

Language:Ruby 48.1%Language:JavaScript 39.8%Language:CSS 9.1%Language:HTML 3.0%