Jenkinsfile: added when

This commit is contained in:
pavelbannov 2020-01-14 18:10:07 +03:00
parent 4330c3b4c3
commit fbb75572f9

4
build/Jenkinsfile vendored
View File

@ -56,6 +56,7 @@ pipeline {
}
}
stage('Test') {
when { changeRequest target: 'master' }
parallel {
stage('Unix') {
agent { label 'net-core' }
@ -74,10 +75,12 @@ pipeline {
reportName : 'Unix Test Report'
]
publishCoverage adapters: [coberturaAdapter('web/ASC.Web.Components/coverage/cobertura-coverage.xml')]
if (env.CHANGE_ID) {
publishCoverageGithub(filepath:'web/ASC.Web.Components/coverage/cobertura-coverage.xml', coverageXmlType: 'cobertura', comparisonOption: [ value: 'optionFixedCoverage', fixedCoverage: '0.65' ], coverageRateType: 'Line')
}
}
}
}
stage('Windows') {
agent { label 'master' }
steps {
@ -100,6 +103,7 @@ pipeline {
}
}
stage('Notify') {
when { changeRequest target: 'master' }
agent { label 'net-core' }
options { skipDefaultCheckout() }
environment {