-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathazure-pipelines.yml
44 lines (37 loc) · 1.16 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: ubuntu-latest
steps:
- task: Bash@3
displayName: 'chmod for gradlew'
inputs:
targetType: 'inline'
script: |
chmod +x gradlew
- task: Bash@3
displayName: 'Donwload and prepare allurectl'
inputs:
targetType: 'inline'
script: |
wget https://github.com/allure-framework/allurectl/releases/latest/download/allurectl_linux_amd64 -O ./allurectl
chmod +x ./allurectl
- script: |
./allurectl watch -- ./gradlew clean test
printenv | grep "ALLURE_"
printenv | grep "AZURE_"
displayName: 'running java junit5 tests by gradle'
env:
ALLURE_ENDPOINT: https://demo.testops.cloud/
ALLURE_PROJECT_ID: 3586
ALLURE_TOKEN: $(ALLURE_TOKEN)
ALLURE_RESULTS: $(ALLURE_RESULTS)
ALLURE_LAUNCH_NAME: "$(Build.DefinitionName)-$(Build.BuildNumber)"
TEST_BRANCH: $(Build.SourceBranchName)
ALLURE_LAUNCH_TAGS: "$(Build.SourceBranchName), azure"
AZURE_BROWSER: $(AZURE_BROWSER)
AZURE_HOST: $(AZURE_HOST)