Problem using command line compilation under Jenkins

Hello everyone!

I'm trying to set up a linux machine (Linux Mint 17 Debian) with the continuous integration system Jenkins, so that when I update code in a repository, it gets compiled and uploaded to the Arduino board.

I can compile via command line on a terminal, but Jenkins cannot. I researched a bit and many answers suggested to use Vxfb due to the need for a X server, but it doesn't work either. The Jenkins process look like it's stuck on the call to the ide.

Has anyone encountered the same or similar problem?

Thank you very much!

Why do you need the IDE to compile?

If you start the IDE and configure the verbose in settings you see the compile (GCC) and upload command (AVRdude) in the status. You should be able to use these commands from Jenkins without a need for the IDE.