Recently discovered the problem with Jenkins, when projects builds were failing due to REST API tests (RestAssured) fails for an unknown reason.
We've recently switched our infrastructure to HTTPS and that change was obviously the root cause as the tests on HTTP were passing successfully.
On local developer's machines, the QA servers or even on Jenkins machine tests were passing when running from bash.
Also tried to run them from the "jenkins" user, on Jenkins machine, from the build's workspace -
in the exact same way Jenkins runs during a build, and all tests were passing successfully on both HTTP and HTTPS.
HTTPS tests were
failing only when started from Jenkins UI "
Build Now" button. We were not able to reproduce these fails any other environment except this Jenkins instance.