-
Notifications
You must be signed in to change notification settings - Fork 7
/
Jenkinsfile
52 lines (50 loc) · 1.12 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@Library('[email protected]') _
/** Desired capabilities */
def capabilities = [
browserName: 'Firefox',
version: '59.0',
platform: 'Windows 10'
]
pipeline {
agent {label 'mesos-testing'}
options {
timestamps()
timeout(time: 1, unit: 'HOURS')
}
environment {
VARIABLES = credentials('AUTH_TESTS_VARIABLES')
PYTEST_ADDOPTS =
"-n=auto " +
"--tb=short " +
"--driver=SauceLabs " +
"--variables=capabilities.json " +
"--variables=${VARIABLES}"
SAUCELABS_API_KEY = credentials('SAUCELABS_API_KEY')
}
stages {
stage('Lint') {
steps {
sh "tox -e flake8"
}
}
stage('Test') {
steps {
writeCapabilities(capabilities, 'capabilities.json')
sh "tox -e py27"
}
post {
always {
archiveArtifacts 'results/*'
junit 'results/*.xml'
publishHTML(target: [
allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'results',
reportFiles: "py27.html",
reportName: 'HTML Report'])
}
}
}
}
}