Socket
Book a DemoInstallSign in
Socket

jenkins-status-tool

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jenkins-status-tool

0.0.8
bundlerRubygems
Version published
Maintainers
1
Created
Source

The Jenkins Status Tool

Small tool to get the build status from Jenkins. Useful for embedding Jenkins CI status images on your Github project.

API

	</tr>

		<tr>
			<td align=center><b>GET</b></td>
			<td>/project/:project_id/status.png</td>
			<td>Get project status image</td>
			<td>
				<img src="https://github.com/kontera-technologies/jenkins-status-tool/raw/master/public/images/pass.png"><br/>
				<img src="https://github.com/kontera-technologies/jenkins-status-tool/raw/master/public/images/fail.png"><br/>
				<img src="https://github.com/kontera-technologies/jenkins-status-tool/raw/master/public/images/unknown.png">					
			</td>
		</tr>
		
		<tr>
			<td align=center><b>GET</b></td>
			<td>/project/:project_id/rcov.png</td>
			<td>Get project rcov graph image</td>
			<td>
				<img src="https://github.com/kontera-technologies/jenkins-status-tool/raw/master/readme-files/rcov.png"><br/>
			</td>
			
		</tr>
		

	</tbody>
MethodActionInfoExamples
GET/project/:project_id/status.jsonGet project status json string {"status":"pass"}
{"status":"fail"}
{"status":"unknown"}

Installation

RubyGems.org

gem install jenkins-status-tool

Source

[root@far-away] git clone git@github.com:kontera-technologies/jenkins-status-tool.git
[root@far-away] bundle install
[root@far-away] bundle exec rake install

Usage

after installing the gem, the jenkins-status-tool command should be available

[root@far-away] jenkins-status-tool --help

The Jenkins Status Tool
Usage: jenkins-status-tool [options]

Options:
    -j, --jenkins URL                Jenkins url, e.g http://jenkins:8080, default is localhost
    -p, --port URL                   listening port, default is 7676
    -d, --daemonize                  run in background
    -P, --pid-file FILE              pid file, default /var/run/jenkins-status-tool.pid
    -s, --https                      use this if running behind https forwarder (e.g stunnel)

More Info:
https://github.com/kontera-technologies/jenkins-status-tool

Example

lets say that our Jenkins server is running on jenkins-server:1234

[root@far-away] jenkins-status-tool --jenkins jenkins-server:1234 --port 5555 --daemonize
[root@far-away] curl http://localhost:5555/project/my-project/status.json
{"status":"pass"}
[root@far-far-away] wget http://localhost:5555/project/my-project/status.png
[...SHOULD DOWNLOAD ONE OF THE IMAGES ABOVE...]

Embed it

you can easily embed the current status of your builds in any html type document.

HTML

<img src="https://jenkins-status-tool-url/project/PROJECT-NAME/status.png"/>

TextLite

"!https://jenkins-status-tool-url/project/PROJECT-NAME/status.png!":http://jenkins.example.com/jobs/PROJET-NAME

RDoc

{<img src="https://jenkins-status-tool-url/project/PROJECT-NAME/status.png" />}[http://jenkins.example.com/jobs/PROJET-NAME]

MarkDown

[![Build Status](https://jenkins-status-tool-url/project/PROJECT-NAME/status.png)](http://jenkins.example.com/jobs/PROJET-NAME)

The tunnel... We used STunnel to route jenkins-status-tool-url:443 <=> jenkins-status-tool-url:5555 This allow us to fetch the status images using https.

Credits

  • Status images by travis-ci

FAQs

Package last updated on 18 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.