mirror of
https://github.com/NaN-tic/trytond-production_process.git
synced 2023-12-14 05:53:01 +01:00
51 lines
1.7 KiB
Text
51 lines
1.7 KiB
Text
|
pipeline {
|
||
|
agent {
|
||
|
docker {
|
||
|
image 'python:3.7'
|
||
|
args '--user 0:0'
|
||
|
}
|
||
|
}
|
||
|
stages {
|
||
|
stage('setup') {
|
||
|
steps {
|
||
|
sh 'pip install tox coverage'
|
||
|
}
|
||
|
}
|
||
|
stage('test'){
|
||
|
steps {
|
||
|
sh 'tox'
|
||
|
}
|
||
|
|
||
|
}
|
||
|
stage("Extract test results") {
|
||
|
steps{
|
||
|
cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'coverage.xml', conditionalCoverageTargets: '70, 0, 0', enableNewApi: true, failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
post {
|
||
|
changed {
|
||
|
emailext subject: '$DEFAULT_SUBJECT',
|
||
|
body: '$DEFAULT_CONTENT',
|
||
|
recipientProviders: [
|
||
|
[$class: 'CulpritsRecipientProvider'],
|
||
|
[$class: 'DevelopersRecipientProvider'],
|
||
|
[$class: 'RequesterRecipientProvider']
|
||
|
],
|
||
|
replyTo: '$DEFAULT_REPLYTO',
|
||
|
to: '$DEFAULT_RECIPIENTS'
|
||
|
}
|
||
|
failure {
|
||
|
emailext subject: '$DEFAULT_SUBJECT',
|
||
|
body: '$DEFAULT_CONTENT',
|
||
|
recipientProviders: [
|
||
|
[$class: 'CulpritsRecipientProvider'],
|
||
|
[$class: 'DevelopersRecipientProvider'],
|
||
|
[$class: 'RequesterRecipientProvider']
|
||
|
],
|
||
|
replyTo: '$DEFAULT_REPLYTO',
|
||
|
to: '$DEFAULT_RECIPIENTS'
|
||
|
}
|
||
|
}
|
||
|
}
|