Jenkins not executing exec.Command()

I’m automating a build on jenkins. In unit test, I have written few curl command using exec.Command(), but jenkins is not executing the exec.Command().
exec.Command() and curl both works fine when I run unit test manually.

Have you checked your errors?