Jenkinsfile: added when
This commit is contained in:
parent
4330c3b4c3
commit
fbb75572f9
6
build/Jenkinsfile
vendored
6
build/Jenkinsfile
vendored
@ -56,6 +56,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
when { changeRequest target: 'master' }
|
||||
parallel {
|
||||
stage('Unix') {
|
||||
agent { label 'net-core' }
|
||||
@ -74,7 +75,9 @@ pipeline {
|
||||
reportName : 'Unix Test Report'
|
||||
]
|
||||
publishCoverage adapters: [coberturaAdapter('web/ASC.Web.Components/coverage/cobertura-coverage.xml')]
|
||||
publishCoverageGithub(filepath:'web/ASC.Web.Components/coverage/cobertura-coverage.xml', coverageXmlType: 'cobertura', comparisonOption: [ value: 'optionFixedCoverage', fixedCoverage: '0.65' ], coverageRateType: 'Line')
|
||||
if (env.CHANGE_ID) {
|
||||
publishCoverageGithub(filepath:'web/ASC.Web.Components/coverage/cobertura-coverage.xml', coverageXmlType: 'cobertura', comparisonOption: [ value: 'optionFixedCoverage', fixedCoverage: '0.65' ], coverageRateType: 'Line')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -100,6 +103,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Notify') {
|
||||
when { changeRequest target: 'master' }
|
||||
agent { label 'net-core' }
|
||||
options { skipDefaultCheckout() }
|
||||
environment {
|
||||
|
Loading…
Reference in New Issue
Block a user