Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

actuator health-check java jenkins prometheus spring spring-boot

Last synced: about 1 month ago
JSON representation

SpringBoot Jenkins Actuator

Awesome Lists containing this project

README

        

spring-jenkins-actuator
=======================

[![Maven Central](https://img.shields.io/maven-metadata/v/http/central.maven.org/maven2/com/itelg/spring/spring-jenkins-actuator/maven-metadata.xml.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.itelg.spring%22%20AND%20a%3A%22spring-jenkins-actuator%22)
[![Codacy Badge](https://api.codacy.com/project/badge/grade/2a49d5565df7457697072dc5b1cdc5be)](https://www.codacy.com/app/eggers-julian/spring-jenkins-actuator)
[![Coverage Status](https://coveralls.io/repos/julian-eggers/spring-jenkins-actuator/badge.svg?branch=master&service=github)](https://coveralls.io/github/julian-eggers/spring-jenkins-actuator?branch=master)
[![Build Status](https://travis-ci.org/julian-eggers/spring-jenkins-actuator.svg?branch=master)](https://travis-ci.org/julian-eggers/spring-jenkins-actuator)

SpringBoot Jenkins Actuator

#### Maven
```xml

com.itelg.spring
spring-jenkins-actuator
1.0.2-RELEASE

```

#### Example
```java
@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](http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html#production-ready-health))
```json
{
"status" : "UP",
"jenkins" :
{
"status" : "UP",
"version" : "2.42"
}
}
```

## Build & Release

### Build
```
mvn clean package
```

### Release
```
mvn clean deploy
```