[buildgear-devel] Building failed with Jenkins when there is no tty present

Qing Jin qing.jin at ixonos.com
Wed Jul 23 03:40:16 MDT 2014


Hi,

I am doing build with buildgear using Jenkins and it fails with the error
"stty: standard input: Inappropriate ioctl for device".

The error happens from these code. It throws error because the command
"stty -echo" gets failed.

void CCursor::disable_echo()
{
   if (system("stty -echo") != 0)
      throw std::runtime_error(strerror(errno));
}

It seems that there is no tty present when jenkins starts building and
buildgear can't do any ioctl for the stdin device. If i comment out the
code "throw std::runtime_error(strerror(errno));", building can be
proceeded without the error.

Has anyone came across the same issue? Is there a better solution for it?
Thanks a lot.

BR
Qing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildgear.org/pipermail/buildgear-devel_buildgear.io/attachments/20140723/ce441edc/attachment.html>


More information about the buildgear-devel mailing list