An attempt to display a set of builds running in Jenkins as a pipeline, a sequence of builds and its states.
The project was developed with ruby version ruby 2.3.0
.
The client is written in JavaScript and have its instructions on its README.
You gonna need to create a config
directory and a .env
file in order to run the project.
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.
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'
Create an .env
file in your repository with the following format
MONITOR_USERNAME=[YOUR JENKINS USERNAME]
MONITOR_TOKEN=[YOUR API TOKEN IN JENKINS]
- 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
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.
To build Jenkins Pipeline image locally on your docker host you can simple run docker build --rm -t jenkins-pipeline .