41
43

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jenkinsでsudoが必要な場合

Last updated at Posted at 2013-12-12

Jsnkinsでsudo付きにコマンドを実行する際にエラー出力

sudo: sudo を実行するには tty がなければいけません。すみません
Build step 'シェルの実行' marked build as failure
Finished: FAILURE

「いえいえ、こちらこそすいません。」といいたくなるw

対処は、

$ sudo /user/sbin/visudo

で中を編集する

- Defaults    requiretty
+ # Defaults    requiretty
+ Defaults:jenkins !requiretty
+ jenkins ALL=(ALL) NOPASSWD:ALL

Jenkinsの再起動で完了


参考サイト

41
43
0

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
  3. You can use dark theme
What you can do with signing up
41
43

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?