search
LoginSignup
12

More than 5 years have passed since last update.

posted at

Jenkinsでsudo実行時のエラー

変なエラーがでる(logに残る所でsudo使ってんじゃねぇよザコってことらしい)

sudo: no tty present and no askpass program specified

visudo に設定を追加

$ sudo visudo
# Defaults !visiblepw
Defaults visiblepw

root    ALL=(ALL:ALL) ALL
jenkins ALL=(ALL) NOPASSWD:ALL

jenkins リスタート

$ service jenkins restart

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
12