Build fails from script

We build on a build server. If I build on the build server from inside the Ue4 Editor it works fine.

In our script it fails on the Cook phase.
link text

Any ideas how to fix this?