Skip to content

Commit 7a1ff49

Browse files
authored
Remove Linux broker validation job, Fixes AB#3492227 (#2866)
This pull request removes the `linuxBrokerValidation` job from the `azure-pipelines/pull-request-validation/build-consumers.yml` pipeline configuration. This job was responsible for building and testing the Linux Broker component in the CI process. Pipeline simplification: * Removed the entire `linuxBrokerValidation` job, including all steps for checking out the broker repository, setting environment variables, retrieving secrets from Azure Key Vault, installing dependencies, building, running tests, and publishing test results for the Linux Broker on Ubuntu. [AB#3492227](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3492227)
1 parent 88aec8a commit 7a1ff49

1 file changed

Lines changed: 0 additions & 78 deletions

File tree

azure-pipelines/pull-request-validation/build-consumers.yml

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -180,81 +180,3 @@ stages:
180180
tasks: AADAuthenticator:localDebugAADAuthenticatorUnitTestCoverageReport --build-cache --info -Plabtest -PlabSecret=$(LabVaultAppCert) -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PpowerLiftApiKey=$(powerliftApiKey) -PcodeCoverageEnabled=true ${{variables.shouldSkipLongRunningTest}}
181181
jdkArchitecture: x64
182182
jdkVersionOption: "1.17"
183-
# Linux broker
184-
- job: linuxBrokerValidation
185-
displayName: Linux Broker
186-
dependsOn:
187-
- setupBranch
188-
variables:
189-
- name: commonBranch
190-
value: $[ dependencies.setupBranch.outputs['setvarStep.commonBranch'] ] # map in the variable
191-
condition: and( succeeded(), not(contains(variables['prLabels'], variables['skipConsumerValidationLabel'])) )
192-
pool:
193-
vmImage: 'ubuntu-22.04'
194-
steps:
195-
- checkout: broker
196-
displayName: Checkout broker repository
197-
clean: true
198-
submodules: recursive
199-
persistCredentials: True
200-
- bash: |
201-
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"
202-
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_ACCESSTOKEN]$(System.AccessToken)"
203-
displayName: 'Set VSTS Fields in Environment'
204-
- task: AzureKeyVault@2
205-
displayName: 'Get Key vault LabAuth'
206-
inputs:
207-
azureSubscription: 'AuthSdkResourceManager'
208-
KeyVaultName: 'MSIDLABS'
209-
SecretsFilter: 'LabAuth'
210-
- bash: lsb_release -d
211-
displayName: ubuntu version
212-
- task: PowerShell@2
213-
displayName: Java Version
214-
inputs:
215-
targetType: inline
216-
script: java -version
217-
- task: CmdLine@1
218-
displayName: Set Office MVN Access Token in Environment
219-
inputs:
220-
filename: echo
221-
arguments: '##vso[task.setvariable variable=ENV_VSTS_MVN_OFFICE_ACCESSTOKEN]$(System.AccessToken)'
222-
- task: Gradle@3
223-
name: Gradle3
224-
displayName: Assemble Linux Broker
225-
inputs:
226-
cwd: $(Build.SourcesDirectory)/broker-java-root
227-
tasks: LinuxBroker:clean LinuxBroker:assemble --build-cache --info
228-
publishJUnitResults: false
229-
jdkArchitecture: x64
230-
jdkVersionOption: "1.17"
231-
- task: Bash@3
232-
displayName: Execute tests
233-
inputs:
234-
workingDirectory: $(Build.SourcesDirectory)/broker-java-root
235-
targetType: 'inline'
236-
script: |
237-
# Set Java 17
238-
tree /usr/lib/jvm
239-
echo "Current Java Home: $JAVA_HOME"
240-
export JAVA_HOME=/usr/lib/jvm/temurin-17-jdk-amd64
241-
export PATH=$JAVA_HOME/bin:$PATH
242-
echo "New Java Home: $JAVA_HOME"
243-
java -version # Verify Java 17 is being used
244-
245-
sudo apt-get install -y dbus-x11
246-
sudo apt-get install -y dos2unix
247-
dos2unix gradlew
248-
chmod +x gradlew
249-
export DISPLAY=:0.0
250-
eval $(dbus-launch --sh-syntax)
251-
sudo apt install gnome-keyring
252-
/usr/bin/gnome-keyring-daemon --start --components=secrets
253-
254-
./gradlew LinuxBroker:linuxBrokerUnitTestCoverageReport -PcodeCoverageEnabled=true -PlabSecret=$(LabAuth) -Psystemd_mode_enabled=false --build-cache --info
255-
- task: PublishTestResults@2
256-
condition: succeededOrFailed()
257-
inputs:
258-
testResultsFormat: 'JUnit'
259-
testResultsFiles: '**/TEST-*.xml'
260-
searchFolder: 'LinuxBroker'

0 commit comments

Comments
 (0)