amlen icon indicating copy to clipboard operation
amlen copied to clipboard

jenkins job doesn't fail if build step fails

Open IanBoden opened this issue 3 years ago • 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: https://github.com/eclipse/amlen/blob/6900d64e8a425013f80e9246c0088549338c5d48/Jenkinsfile#L58-L76

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: https://github.com/eclipse/amlen/blob/6900d64e8a425013f80e9246c0088549338c5d48/server_admin/test/security_test.c#L148-L163

IanBoden avatar Sep 21 '22 23:09 IanBoden