Skip to content

Commit

Permalink
add jmxfetch.jar to the expected location by datadog (#29151)
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-guy authored Sep 22, 2024
1 parent 6c9b876 commit 2d138c5
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions datadog-jmxfetch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package:
name: datadog-jmxfetch
version: 0.49.4
epoch: 0
description: Export JMX metrics
copyright:
- license: Apache-2.0

environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- curl
- maven
- openjdk-17
- openjdk-17-default-jvm
environment:
LANG: en_US.UTF-8
JAVA_HOME: /usr/lib/jvm/java-17-openjdk

pipeline:
- uses: git-checkout
with:
repository: https://github.com/DataDog/jmxfetch
tag: ${{package.version}}
expected-commit: 76f0a049b18f2b9de52d3937a2759444586c40dc

- runs: |
./mvnw -DskipTests clean package assembly:single;
mkdir -p ${{targets.contextdir}}/opt/datadog-agent/bin/agent/dist/jmx
mv target/jmxfetch-*-jar-with-dependencies.jar ${{targets.contextdir}}/opt/datadog-agent/bin/agent/dist/jmx/jmxfetch.jar
update:
enabled: true
github:
identifier: https://github.com/DataDog/jmxfetch

test:
pipeline:
- runs: |
# check if there is a file /opt/datadog-agent/bin/agent/dist/jmx
if [ ! -f /opt/datadog-agent/bin/agent/dist/jmx/jmxfetch.jar ]; then
echo "jmxfetch.jar not found"
exit 1
fi

0 comments on commit 2d138c5

Please sign in to comment.