Skip to content

Commit

Permalink
Switching to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
venushka committed Jan 23, 2022
1 parent 7ffcbc8 commit e545040
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 68 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- run: mvn --batch-mode --update-snapshots verify
44 changes: 44 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release
on:
push:
tags:
- 'release_*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- run: mvn --batch-mode --update-snapshots package
- run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\/release_/}" >> $GITHUB_ENV
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
- uses: actions/upload-release-asset@v1
id: upload-release-zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/jmxeval.zip
asset_name: jmxeval-${{ env.RELEASE_VERSION }}-bin.zip
asset_content_type: application/zip
- uses: actions/upload-release-asset@v1
id: upload-release-tar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/jmxeval.tar.gz
asset_name: jmxeval-${{ env.RELEASE_VERSION }}-bin.tar.gz
asset_content_type: application/gzip
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
jmxeval
=======

[![Build Status](https://travis-ci.org/venushka/jmxeval.svg?branch=master)](https://travis-ci.org/venushka/jmxeval)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=com.adahas%3Ajmxeval&metric=alert_status)](https://sonarcloud.io/dashboard/index/com.adahas:jmxeval)

*jmxeval* is a highly flexible Nagios/NRPE plugin for monitoring Java applications via JMX. Instead of just checking just an attribute of an MBean, JMXEval allows you to query multiple MBean attributes as well as results of MBean method invocations, and also perform mathematical computations to derive much more meaningful figures for monitoring. JMXEval can also provide all the information captured from MBeans as well as any computed figures as performance data allowing you to capture and visualise trends in Nagios.

# Setting up
Expand Down
30 changes: 3 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,11 @@
<plugin.clean.version>2.5</plugin.clean.version>
<plugin.jar.version>2.5</plugin.jar.version>
<plugin.surefire.version>2.18</plugin.surefire.version>
<plugin.sonar.version>3.1.1</plugin.sonar.version>
<plugin.compiler.version>3.0</plugin.compiler.version>
<plugin.assembly.version>2.2.2</plugin.assembly.version>

<!-- sonar -->
<sonar.sources>src/main</sonar.sources>
<sonar.tests>src/test</sonar.tests>
<sonar.junit.reportsPath>target/surefire-reports</sonar.junit.reportsPath>
<sonar.jacoco.reportPath>target/jacoco.exec</sonar.jacoco.reportPath>
</properties>

<build>
<defaultGoal>install</defaultGoal>
<pluginManagement>
<plugins>
<plugin>
Expand All @@ -58,11 +50,6 @@
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${plugin.asciidoctor.version}</version>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${plugin.sonar.version}</version>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -92,6 +79,8 @@
<descriptors>
<descriptor>src/main/assembly/descriptor.xml</descriptor>
</descriptors>
<finalName>jmxeval</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -155,20 +144,7 @@
<artifactId>jdk.tools</artifactId>
<version>jdk1.8.0</version>
<scope>system</scope>
<systemPath>${toolsjar}</systemPath>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>

<profiles>
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.host.url>https://sonarqube.com</sonar.host.url>
<toolsjar>${java.home}/../lib/tools.jar</toolsjar>
</properties>
</profile>
</profiles>
</project>

0 comments on commit e545040

Please sign in to comment.