[ https://issues.jenkins-ci.org/browse/JENKINS-13845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163052#comment-163052 ]
pangpang wanzi commented on JENKINS-13845: ------------------------------------------ I tested the script that exits with 2, but jenkins marks success, it is so strange. > compiling failed but trigger success email > ------------------------------------------ > > Key: JENKINS-13845 > URL: https://issues.jenkins-ci.org/browse/JENKINS-13845 > Project: Jenkins > Issue Type: Bug > Components: email-ext > Affects Versions: current > Environment: jenkins:1.464 > email-ext:2.21 > Reporter: pangpang wanzi > Priority: Critical > Labels: email-ext, jenkins, plugin > Attachments: config.xml, screenshot-1.jpg > > > Hi, > I make utest after compiling. It shows failed in log, but send out success > email. > error info: > ../../src/snmp/snmp_async_interface.c:352: warning: unused variable `session' > gcc -g > /home/gaxu/atcamgw-main/SS_MGWRemoteTDMMgr/include/UTframework/tnsdlunit/lib/libtnsdlunit.a > main_tests.o stubs.o stubs_pm.o stubs_snmp.o Test_AdxAlarmFilter.o > Test_AdxAlarmHandle.o Test_AdxPm.o Test_AdxSNMPHandle.o Test_AdxSystemCfg.o > Test_SnmpAdxMspConf.o Test_SnmpAdxPdhConf.o Test_SnmpAdxSdhConf.o > string_operation.o teststubs_ad5fil.o teststubs_ad9fil.o teststubs_adkfil.o > ../../src/adx_alarmfilter.o ../../src/adx_alarmhandle.o > ../../src/adx_pm_module.o ../../src/snmp/snmp_intf.o > ../../src/snmp/snmp_adx_mibs.o ../../src/snmp/snmp_adx_pdh_conf.o > ../../src/snmp/snmp_adx_sdh_conf.o ../../src/snmp/snmp_adx_msp_conf.o > ../../src/snmp/snmp_adx_system_conf.o ../../src/snmp/snmp_adx_pm_conf.o > ../../src/snmp/snmp_adx_pm_intf.o ../../src/snmp/snmp_async_interface.o -L > /home/gaxu/atcamgw-main/SS_MGWRemoteTDMMgr/include/UTframework/tnsdlunit/dx_unittest/lib > -L > /home/gaxu/atcamgw-main/SS_MGWRemoteTDMMgr/include/UTframework/tnsdlunit/lib > -ltnsdlunit -lclustub -llibgenstub -ldmxstub -ldx_utils -ldto_encode_decode > -lmessage_queue -lsekstub -lstring_utils -lnetsnmp -lssl -lpthread -lgcov -L > > /home/gaxu/atcamgw-main/SS_MGWRemoteTDMMgr/include/UTframework/tnsdlunit/dx_unittest/cpputest/lib > -lCppUTest -lCppUTestExt -lstdc++ -o remotemgr_tnsdl_tst > ./remotemgr_tnsdl_tst -ojunit > make[1]: *** [all] Error 5 > make[1]: Leaving directory > `/home/hzmgwscm/projects/ui5_trunk/atcamgw-main/SS_MGWRemoteTDMMgr/src/manager/tst/UT' > make: *** [utest] Error 2 > [htmlpublisher] Archiving HTML reports... > [htmlpublisher] Archiving at PROJECT level > /home/hzmgwscm/projects/ui5_trunk/atcamgw-main/SS_MGWRemoteTDMMgr/build/artifacts/CMTHTML > to > /home/hzmgwscm/.jenkins/jobs/ui5_EP1-trunk_SS_MGWRemoteTDMMgr_test/htmlreports/CMT_Report > [htmlpublisher] Archiving at PROJECT level > /home/hzmgwscm/projects/ui5_trunk/atcamgw-main/SS_MGWRemoteTDMMgr/build/artifacts/PMD > to > /home/hzmgwscm/.jenkins/jobs/ui5_EP1-trunk_SS_MGWRemoteTDMMgr_test/htmlreports/CPD_Report > [htmlpublisher] Archiving at PROJECT level > /home/hzmgwscm/projects/ui5_trunk/atcamgw-main/SS_MGWRemoteTDMMgr/build/artifacts/pylintreport > to > /home/hzmgwscm/.jenkins/jobs/ui5_EP1-trunk_SS_MGWRemoteTDMMgr_test/htmlreports/Static_Check_Report > Email was triggered for: Success > Sending email for trigger: Success > Sending email to: jianfeng.c...@nsn.com > Finished: SUCCESS -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira