Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins build errors

Tags:

linux

jenkins

I am trying to setup the build commands, I am getting these errors. I have tried setting up the security configuration.

Access control:

  • Jenkins own user database.
  • Allow users to sign up.

Authorization : Matrix based.

user group : joshis1 - checked all.

After running the build. I get the following errror. In the build script, I am just trying to copy a file.

FailedConsole Output

Started by user shreyas joshi
Building in workspace /var/lib/jenkins/workspace/Tungsten-Build
[Tungsten-Build] $ /bin/sh /tmp/hudson1841543545003586844.sh
November26
November26
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
sudo: sorry, you must have a tty to run sudo
Build step 'Execute shell' marked build as failure
Finished: FAILURE
like image 343
dexterous Avatar asked Nov 26 '13 12:11

dexterous


1 Answers

The visudo solution works, but instead of of commenting out

Defaults    requiretty

you could add the following line:

Defaults:<jenkins user> !requiretty

I should have added a comment, but my reputation is to low...

like image 181
Hjelmen Avatar answered Nov 06 '22 19:11

Hjelmen