@@ -64,22 +64,33 @@ pipeline {
64
64
always {
65
65
junit(allowEmptyResults : true , keepLongStdio : true , testResults : ' sonic-swss-tests/tests/tr.xml' )
66
66
67
- publishHTML(target : [
68
- allowMissing : false ,
69
- alwaysLinkToLastBuild : false ,
70
- keepAll : true ,
71
- reportDir : ' sonic-utilities/htmlcov' ,
72
- reportFiles : ' index.html' ,
73
- reportName : ' RCov Report'
74
- ])
67
+ script {
68
+ /* 201911 branch does not generate Pytest coverage report */
69
+ if (env. ghprbTargetBranch != ' 201911' ) {
70
+ publishHTML(target : [
71
+ allowMissing : false ,
72
+ alwaysLinkToLastBuild : false ,
73
+ keepAll : true ,
74
+ reportDir : ' sonic-utilities/htmlcov' ,
75
+ reportFiles : ' index.html' ,
76
+ reportName : ' RCov Report'
77
+ ])
75
78
76
- publishCoverage(adapters : [
77
- coberturaAdapter(' sonic-utilities/coverage.xml' )
78
- ])
79
+ publishCoverage(adapters : [
80
+ coberturaAdapter(' sonic-utilities/coverage.xml' )
81
+ ])
82
+ }
83
+ }
79
84
}
80
85
81
86
success {
82
- archiveArtifacts(artifacts : ' sonic-utilities/dist/sonic_utilities-1.2-py2-none-any.whl,wheels/sonic_config_engine-1.0-py2-none-any.whl,wheels/swsssdk-2.0.1-py2-none-any.whl,wheels/sonic_py_common-1.0-py2-none-any.whl,wheels/sonic_py_common-1.0-py3-none-any.whl, sonic-swss-tests/tests/log/**' )
87
+ script {
88
+ if (env. ghprbTargetBranch == ' 201911' ) {
89
+ archiveArtifacts(artifacts : ' sonic-utilities/deb_dist/python-sonic-utilities_1.2-1_all.deb,wheels/sonic_config_engine-1.0-py2-none-any.whl,wheels/swsssdk-2.0.1-py2-none-any.whl,wheels/sonic_py_common-1.0-py2-none-any.whl,wheels/sonic_py_common-1.0-py3-none-any.whl, sonic-swss-tests/tests/log/**' )
90
+ } else {
91
+ archiveArtifacts(artifacts : ' sonic-utilities/dist/sonic_utilities-1.2-py2-none-any.whl,wheels/sonic_config_engine-1.0-py2-none-any.whl,wheels/swsssdk-2.0.1-py2-none-any.whl,wheels/sonic_py_common-1.0-py2-none-any.whl,wheels/sonic_py_common-1.0-py3-none-any.whl, sonic-swss-tests/tests/log/**' )
92
+ }
93
+ }
83
94
}
84
95
85
96
cleanup {
0 commit comments