forked from acconeer/acconeer-python-exploration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
27 lines (24 loc) · 798 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
gerritReview labels: [Verified: 0], message: "Test started: ${env.BUILD_URL}"
pipeline {
agent {
dockerfile {
label 'ai-31'
args '--net=host'
}
}
stages {
stage('Test') {
steps {
sh 'flake8'
sh 'python3 setup.py -q install --user'
sh 'pytest -v --timeout=60 --timeout_method=thread'
sh 'sphinx-build -QW -b html docs docs/_build'
}
}
}
post {
success { gerritReview labels: [Verified: 1], message: "Success: ${env.BUILD_URL}" }
failure { gerritReview labels: [Verified: -1], message: "Failed: ${env.BUILD_URL}" }
aborted { gerritReview labels: [Verified: -1], message: "Aborted: ${env.BUILD_URL}" }
}
}