Giter VIP home page Giter VIP logo

information-display's Introduction

Information-Display

A Service-/Database-less approach to keep track of any information you would like to display. Java needs to be installed on the target machine.

Alt text

The structure of the index.html is a simple table:

  <table class="container"> 
   <thead> 
    <tr> 
     <th>Key1</th> 
     <th>Key2</th> 
     <th>Key3</th>
    </tr> 
   </thead> 
   <tbody>
    <tr> 
     <td>value_key1</td> 
     <td>value_key2</td> 
     <td>value_key3</td>
    </tr>
    ...
   </tbody> 
  </table>  

How to use

  1. Copy the index.html, style.css (of your choice) and the assembled build-jar (target/information-display.jar) into your desired location
  2. Update the index.html on the machine via the jar-file
  • java -jar {PATH}/information-display.jar ...
  • {key} {column} {value} - Will replace the entry in column {key} and row {column} with {value}
  • addColumn {name} - adds an table-head entry and an empty body entry for all existing rows
  • removeColumn {name} - deletes the table-head {name} and all body entries from the table
  • removeRow {value_key} - deletes the table-body with the key {value_key}. The key has to be in the first column (value_key1 in the example).

Update via Jenkins Global Pipeline Library

  • Add a new file under vars of your global Jenkins pipeline library (f.e. updateDisplay.groovy)
  • paste content
def call(String host, String credentials, String path, String name, String key, String value) {
	sshagent(credentials: [credentials]) {
		sh "ssh -o StrictHostKeyChecking=no -l jenkins " + host + " 'sudo java -jar "+path+"/information-display.jar "+name+" "+key+" "+value+"'"
	}
}
  • call method from your pipeline like
updateDisplay("host.company.de", "jenkins_ssh", "/usr/share/nginx/html", "serviceName", "Port", "1234")

information-display's People

Contributors

dhinske avatar

Watchers

James Cloos avatar  avatar

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.