forked from gurock/trcli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
33 lines (32 loc) · 937 Bytes
/
Jenkinsfile
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
pipeline {
agent any
stages {
stage('Checkout code') {
steps {
checkout scm
}
}
stage('Install dependencies') {
steps {
sh "python3 -m pip install -r ./tests/requirements.txt"
}
}
stage('Test') {
steps {
sh "python3 -m pytest -c ./tests/pytest.ini -W ignore::pytest.PytestCollectionWarning --alluredir=./allure-results"
}
}
stage('Allure report') {
steps {
script {
allure([
includeProperties: false,
properties: [],
reportBuildPolicy: 'ALWAYS',
results: [[path: './allure-results']]
])
}
}
}
}
}