-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathJenkinsfile
More file actions
35 lines (35 loc) · 940 Bytes
/
Jenkinsfile
File metadata and controls
35 lines (35 loc) · 940 Bytes
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
pipeline {
agent any
options {
checkoutToSubdirectory('argo-alert')
}
environment {
PROJECT_DIR="argo-alert"
}
stages {
stage ('Test Centos 7') {
agent {
docker {
image 'argo.registry:5000/python3'
args '-u jenkins:jenkins'
}
}
steps {
sh '''
cd ${WORKSPACE}/$PROJECT_DIR
pipenv install -r requirements.txt
pipenv run python setup.py install
pipenv run coverage run --source=./argoalert -m pytest
pipenv run coverage xml
pipenv run py.test ./ --junitxml=./junit.xml
'''
cobertura coberturaReportFile: '**/coverage.xml'
}
}
}
post {
always {
cleanWs()
}
}
}