spring-jenkins-actuator

SpringBoot Jenkins Actuator

License

License

Categories

Categories

Jenkins Build Tools Continuous Integration and Continuous Delivery
GroupId

GroupId

com.itelg.spring
ArtifactId

ArtifactId

spring-jenkins-actuator
Last Version

Last Version

1.0.2-RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

spring-jenkins-actuator
SpringBoot Jenkins Actuator
Project URL

Project URL

https://github.com/julian-eggers/spring-jenkins-actuator
Source Code Management

Source Code Management

https://github.com/julian-eggers/spring-jenkins-actuator

Download spring-jenkins-actuator

How to add to project

<!-- https://jarcasting.com/artifacts/com.itelg.spring/spring-jenkins-actuator/ -->
<dependency>
    <groupId>com.itelg.spring</groupId>
    <artifactId>spring-jenkins-actuator</artifactId>
    <version>1.0.2-RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.itelg.spring/spring-jenkins-actuator/
implementation 'com.itelg.spring:spring-jenkins-actuator:1.0.2-RELEASE'
// https://jarcasting.com/artifacts/com.itelg.spring/spring-jenkins-actuator/
implementation ("com.itelg.spring:spring-jenkins-actuator:1.0.2-RELEASE")
'com.itelg.spring:spring-jenkins-actuator:jar:1.0.2-RELEASE'
<dependency org="com.itelg.spring" name="spring-jenkins-actuator" rev="1.0.2-RELEASE">
  <artifact name="spring-jenkins-actuator" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.itelg.spring', module='spring-jenkins-actuator', version='1.0.2-RELEASE')
)
libraryDependencies += "com.itelg.spring" % "spring-jenkins-actuator" % "1.0.2-RELEASE"
[com.itelg.spring/spring-jenkins-actuator "1.0.2-RELEASE"]

Dependencies

compile (3)

Group / Artifact Type Version
org.springframework.boot : spring-boot-actuator jar 2.0.6.RELEASE
org.slf4j : slf4j-api jar 1.7.25
com.offbytwo.jenkins : jenkins-client jar 0.3.8

test (5)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.11.1
org.easymock : easymock jar 4.0.1
org.powermock : powermock-module-junit4 jar 2.0.0-RC.3
org.powermock : powermock-api-easymock jar 2.0.0-RC.3
org.jacoco : org.jacoco.agent jar 0.8.2

Project Modules

There are no modules declared in this project.

spring-jenkins-actuator

Maven Central Codacy Badge Coverage Status Build Status

SpringBoot Jenkins Actuator

Maven

<dependency>
	<groupId>com.itelg.spring</groupId>
	<artifactId>spring-jenkins-actuator</artifactId>
	<version>1.0.2-RELEASE</version>
</dependency>

Example

@Bean
public HealthIndicator jenkinsHealthIndicator()
{
	return new JenkinsHealthIndicator("http://jenkins.com");
}

@Bean
public HealthIndicator jenkinsHealthIndicator()
{
	return new JenkinsHealthIndicator("http://jenkins.com", "admin", "secretPassword");
}

Response (health.json)

{
	"status" : "UP",
	"jenkins" : 
	{
		"status" : "UP",
		"version" : "2.42"
	}
}

Build & Release

Build

mvn clean package

Release

mvn clean deploy

Versions

Version
1.0.2-RELEASE
1.0.1-RELEASE
1.0.0-RELEASE
0.2.0-RELEASE
0.1.0-RELEASE