/hyper-commons-plugin

API plugin for integrate Jenkins with Hyper_

Primary LanguageJavaMIT LicenseMIT

hyper-commons-plugin

Build Status

This plugin provides common functionality for integrating Jenkins with Hyper_.

Features

Plugin currently supports the following features:

  • Install hyper cli
  • Set Hyper_ credentials
  • Test connection to your account.

Use plugin

Prerequisites

Config plugin

Manage Jenkins -> Configure System -> Hyper Config
  -> Hyper_ Access Key
  -> Hyper_ Secret Key
  -> DockerHub Username
  -> DockerHub Password
  -> DockerHub Email

Manage Jenkins -> Configure System -> Hypercli Install

Config job

Build job

View build result

Build plugin

Prerequisites

  • java 1.8+
  • maven 3+

Compile

$ mvn compile

Test

compile + test

$ mvn test

Package

output: target/hyper-commons.hpi

compile + test + package

$ mvn package

//skip test
$ mvn package -DskipTests

Install hyper-commons-plugin

In local dev jenkins server

//start jenkins server
$ mvn hpi:run -Djetty.port=8090

//open jenkins web ui
http://<host_ip>:8090/jenkins

In standalone jenkins server

open Jenkins Web UI in web browser

get pre-build hyper-commons.hpi

Manage Jenkins -> Manage Plugins -> Advanced -> Upload Plugin

Release plugin

$ mvn release:prepare release:perform