Skip to content

Commit

Permalink
Enable Testing Custom Standalone Exporter Dependency (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyams authored Apr 30, 2024
1 parent 102c705 commit 0ebde05
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/build-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
no-build-cache:
type: boolean
required: false

env:
EXPORTER_VERSION: 1.0.0-beta.22 # to be updated with the latest version

jobs:
spotless:
Expand Down Expand Up @@ -42,6 +45,13 @@ jobs:
distribution: temurin
java-version: 17

- name: Using a local standalone exporter dependency?
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
run: |
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
mvn -version
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
- name: Generate license report
uses: gradle/gradle-build-action@v3
with:
Expand Down Expand Up @@ -81,6 +91,13 @@ jobs:
distribution: temurin
java-version: 17

- name: Using a local standalone exporter dependency?
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
run: |
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
mvn -version
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
- name: Assemble
uses: gradle/gradle-build-action@v3
with:
Expand Down Expand Up @@ -129,6 +146,13 @@ jobs:
distribution: temurin
java-version: 17

- name: Using a local standalone exporter dependency?
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
run: |
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
mvn -version
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
- name: Test
uses: gradle/gradle-build-action@v3
with:
Expand Down Expand Up @@ -169,6 +193,13 @@ jobs:
distribution: temurin
java-version: 17

- name: Using a local standalone exporter dependency?
if: ${{ hashFiles('azure-monitor-opentelemetry-exporter-1.0.0-beta.*.jar') != '' }}
run: |
echo "exporter_version: ${{ env.EXPORTER_VERSION }}"
mvn -version
mvn install:install-file -Dfile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.jar" -DpomFile="azure-monitor-opentelemetry-exporter-${{ env.EXPORTER_VERSION }}.pom" -DgroupId="com.azure" -DartifactId="azure-monitor-opentelemetry-exporter" -Dversion="${{ env.EXPORTER_VERSION }}"
- name: Test
uses: gradle/gradle-build-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion licenses/more-licenses.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# agent
## Dependency License Report
_2024-04-29 08:28:21 UTC_
_2024-04-30 16:16:32 PDT_
## Apache License, Version 2.0

**1** **Group:** `com.fasterxml.jackson.core` **Name:** `jackson-annotations` **Version:** `2.17.0`
Expand Down

0 comments on commit 0ebde05

Please sign in to comment.