Coder Social home page Coder Social logo

g3force / qablink Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 20 KB

Get the current build status from Jenkins and Quality Gate Status from Sonar for multiple projects and report them on a blink1 device.

Go 100.00%
blink1 sonarqube jenkins quality-assurance

qablink's Introduction

qaBlink

Get the current build status from Jenkins and Quality Gate Status from Sonar for multiple projects and report them on a blink1 device.

All status can be placed to 'slots'. Slots are gone through iteratively with a fixed duration per slot. Status from jobs can be assigned to an available LED of the blink1 devices that are attached.

Requirements

This project depends on https://github.com/hink/go-blink1/ which makes use of libusb to access the blink1 device. libusb is available for many Platforms including Linux, Mac and Windows.

You need to install following dependencies first:

  • libusb
  • Go >= 1.9

Linux

For Linux, you will need to add a udev rule if you want to execute the binary without root permissions. On Arch Linux, it would look like this:

cat /etc/udev/rules.d/10.blink1.rules 
SUBSYSTEMS=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", SYMLINK+="blink1", GROUP="wheel"

Windows

In theory, it should also work with Windows, if libusb is installed. I have never tested this, though...

Installation

Download and install to GOPATH:

go get github.com/g3force/qaBlink

It will produce a qaBlink executable in $GOPATH/bin. The executable assumes a config.json file in the current working directory or a .qaBlink.json in your HOME dir.

Configuration

Copy example.config.json to config.json and adapt it to your needs. You can define multiple Jenkins and Sonar connections and jobs and assign them to slots.

qablink's People

Contributors

g3force avatar

Stargazers

 avatar  avatar

Watchers

 avatar

qablink's Issues

Symlinked ~/qaBlink.json does not work

I have my config somewhere, let's say $HOME/foo/some-config-name.json.
I have symlinked $HOME/qaBlink.json to point to that file.

Expectation: I can run qaBlink from any folder and it works using my config.

Actual result:

โžœ  qaBlink
panic: open : no such file or directory

goroutine 1 [running]:
github.com/g3force/qaBlink/config.NewQaBlinkConfig(0x0, 0x0, 0x1)
	/Users/hanswurst/go/src/github.com/g3force/qaBlink/config/config.go:26 +0x2d3
main.main()
	/Users/hanswurst/go/src/github.com/g3force/qaBlink/qaBlink.go:163 +0xba

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.