Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 0 additions & 78 deletions azure-pipelines/pull-request-validation/build-consumers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,81 +180,3 @@ stages:
tasks: AADAuthenticator:localDebugAADAuthenticatorUnitTestCoverageReport --build-cache --info -Plabtest -PlabSecret=$(LabVaultAppCert) -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PpowerLiftApiKey=$(powerliftApiKey) -PcodeCoverageEnabled=true ${{variables.shouldSkipLongRunningTest}}
jdkArchitecture: x64
jdkVersionOption: "1.17"
# Linux broker
- job: linuxBrokerValidation
displayName: Linux Broker
dependsOn:
- setupBranch
variables:
- name: commonBranch
value: $[ dependencies.setupBranch.outputs['setvarStep.commonBranch'] ] # map in the variable
condition: and( succeeded(), not(contains(variables['prLabels'], variables['skipConsumerValidationLabel'])) )
pool:
vmImage: 'ubuntu-22.04'
steps:
- checkout: broker
displayName: Checkout broker repository
clean: true
submodules: recursive
persistCredentials: True
- bash: |
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_ACCESSTOKEN]$(System.AccessToken)"
displayName: 'Set VSTS Fields in Environment'
- task: AzureKeyVault@2
displayName: 'Get Key vault LabAuth'
inputs:
azureSubscription: 'AuthSdkResourceManager'
KeyVaultName: 'MSIDLABS'
SecretsFilter: 'LabAuth'
- bash: lsb_release -d
displayName: ubuntu version
- task: PowerShell@2
displayName: Java Version
inputs:
targetType: inline
script: java -version
- task: CmdLine@1
displayName: Set Office MVN Access Token in Environment
inputs:
filename: echo
arguments: '##vso[task.setvariable variable=ENV_VSTS_MVN_OFFICE_ACCESSTOKEN]$(System.AccessToken)'
- task: Gradle@3
name: Gradle3
displayName: Assemble Linux Broker
inputs:
cwd: $(Build.SourcesDirectory)/broker-java-root
tasks: LinuxBroker:clean LinuxBroker:assemble --build-cache --info
publishJUnitResults: false
jdkArchitecture: x64
jdkVersionOption: "1.17"
- task: Bash@3
displayName: Execute tests
inputs:
workingDirectory: $(Build.SourcesDirectory)/broker-java-root
targetType: 'inline'
script: |
# Set Java 17
tree /usr/lib/jvm
echo "Current Java Home: $JAVA_HOME"
export JAVA_HOME=/usr/lib/jvm/temurin-17-jdk-amd64
export PATH=$JAVA_HOME/bin:$PATH
echo "New Java Home: $JAVA_HOME"
java -version # Verify Java 17 is being used

sudo apt-get install -y dbus-x11
sudo apt-get install -y dos2unix
dos2unix gradlew
chmod +x gradlew
export DISPLAY=:0.0
eval $(dbus-launch --sh-syntax)
sudo apt install gnome-keyring
/usr/bin/gnome-keyring-daemon --start --components=secrets

./gradlew LinuxBroker:linuxBrokerUnitTestCoverageReport -PcodeCoverageEnabled=true -PlabSecret=$(LabAuth) -Psystemd_mode_enabled=false --build-cache --info
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
searchFolder: 'LinuxBroker'
Loading