forked from ElectroNickP/allure-example-ae
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (39 loc) · 1.28 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
45
46
# 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 job-run plan --output-file $(ALLURE_TESTPLAN_PATH)
./allurectl watch -- ./gradlew clean test
printenv | grep "ALLURE_"
printenv | grep "AZURE_"
displayName: 'running java junit5 tests by gradle'
env:
ALLURE_ENDPOINT: $(ALLURE_ENDPOINT)
ALLURE_PROJECT_ID: $(ALLURE_PROJECT_ID)
ALLURE_TOKEN: $(ALLURE_TOKEN)
ALLURE_TESTPLAN_PATH: $(ALLURE_TESTPLAN_PATH)
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)