mirror of
https://github.com/NaN-tic/trytond-commission_invoice_posted2draft.git
synced 2023-12-14 02:42:59 +01:00
50 lines
1.7 KiB
Groovy
50 lines
1.7 KiB
Groovy
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'
|
|
}
|
|
}
|
|
}
|