Skip to content

Support for name change from Azure Active Directory to Microsoft Entra ID #29

Support for name change from Azure Active Directory to Microsoft Entra ID

Support for name change from Azure Active Directory to Microsoft Entra ID #29

Workflow file for this run

# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
name: Maven Package
on:
release:
types: [prereleased]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven of project
run: |
export MVN_ARGS_PROJECT="-DbuildNumberSuffix= -B --file pom.xml"
mvn ${MVN_ARGS_PROJECT} package
- name: Get built jar filename
run: |
export MVN_ARGS_FUNCTIONS="-DbuildNumberSuffix= -B --file plugins/functions/pom.xml"
echo "FILENAME_FUNCTIONS=$(mvn ${MVN_ARGS_FUNCTIONS} org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
export MVN_ARGS_PROTOCOL_EVENTHUBS="-DbuildNumberSuffix= -B --file plugins/protocol/eventhubs/pom.xml"
echo "FILENAME_PROTOCOL_EVENTHUBS=$(mvn ${MVN_ARGS_PROTOCOL_EVENTHUBS} org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
export MVN_ARGS_PROTOCOL_SERVICEBUS="-DbuildNumberSuffix= -B --file plugins/protocol/servicebus/pom.xml"
echo "FILENAME_PROTOCOL_SERVICEBUS=$(mvn ${MVN_ARGS_PROTOCOL_SERVICEBUS} org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
export MVN_ARGS_PROTOCOL_STORAGEQUEUE="-DbuildNumberSuffix= -B --file plugins/protocol/storagequeue/pom.xml"
echo "FILENAME_PROTOCOL_STORAGEQUEUE=$(mvn ${MVN_ARGS_PROTOCOL_STORAGEQUEUE} org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
export MVN_ARGS_LOADTESTINGSTUB="-DbuildNumberSuffix= -B --file plugins/AzLoadTestingStub/pom.xml"
echo "FILENAME_LOADTESTINGSTUB=$(mvn ${MVN_ARGS_LOADTESTINGSTUB} org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
- name: Upload built jar of functions
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./plugins/functions/target/${{ env.FILENAME_FUNCTIONS }}.jar
asset_name: ${{ env.FILENAME_FUNCTIONS }}.jar
asset_content_type: application/java-archive
- name: Upload built jar of AzEventHubs sampler
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./plugins/protocol/eventhubs/target/${{ env.FILENAME_PROTOCOL_EVENTHUBS }}.jar
asset_name: ${{ env.FILENAME_PROTOCOL_EVENTHUBS }}.jar
asset_content_type: application/java-archive
- name: Upload built jar of AzServiceBus sampler
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./plugins/protocol/servicebus/target/${{ env.FILENAME_PROTOCOL_SERVICEBUS }}.jar
asset_name: ${{ env.FILENAME_PROTOCOL_SERVICEBUS }}.jar
asset_content_type: application/java-archive
- name: Upload built jar of AzStorageQueue sampler
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./plugins/protocol/storagequeue/target/${{ env.FILENAME_PROTOCOL_STORAGEQUEUE }}.jar
asset_name: ${{ env.FILENAME_PROTOCOL_STORAGEQUEUE }}.jar
asset_content_type: application/java-archive
- name: Upload built jar of AzLoadTestingStub
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./plugins/AzLoadTestingStub/target/${{ env.FILENAME_LOADTESTINGSTUB }}.jar
asset_name: ${{ env.FILENAME_LOADTESTINGSTUB }}.jar
asset_content_type: application/java-archive