Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
duyluonganh committed Nov 20, 2023
1 parent 678c521 commit 636d354
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,26 @@ pool:
vmImage: 'ubuntu-22.04'

steps:
- task: CmdLine@2
inputs:
script: |
echo "Installing Java"
sudo apt update
sudo apt install openjdk-8-jre -y
sudo update-java-alternatives -l
sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/bin/java
echo "Java Version Installed is"
java -version
echo "Install Complete"
- task: katalonTask@1
inputs:
version: '9.0.0'
version: '8.6.8'
executeArgs: '-testSuitePath="Test Suites/New Test Suite" -browserType="Chrome" -apiKey=$(katalon_api_key) --config -webui.autoUpdateDrivers=true'
xvfbConfiguration: '-s "-screen 0 1024x768x24"'
env:
JAVA_HOME: $(JAVA_HOME_17_X64)
PATH: $(JAVA_HOME_17_X64)/bin:$(PATH)
JAVA_HOME: $(JAVA_HOME_8_X64)
PATH: $(JAVA_HOME_8_X64)/bin:$(PATH)

- task: PublishPipelineArtifact@0
inputs:
Expand Down

0 comments on commit 636d354

Please sign in to comment.