jenkins job doesn't fail if build step fails
Opened this issue · 0 comments
There is something wrong in the jenkins job which means that builds that fail (ie the build step in the job fails) do not necessarily cause the job to fail. As long as the files needed in the deploy step have been created then the deploy step will pass and the job will be counted as a success. This is a particular problem when it comes to unit tests as those run after everything needed for deploying run so unit tests failures do not cause the job to fail (or even make it obvious they have failed).
Hopefully something small has been missed in the build step of the jenkinsFile:
Lines 58 to 76 in 6900d64
Making a unit test fail is fairly easy, however you need to know which ones run standardly in a build so here is a new test that does run:
amlen/server_admin/test/security_test.c
Lines 148 to 163 in 6900d64