1
2

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 3 years have passed since last update.

[自分用メモ] Jenkins コンソール出力 をテキストファイルで取得する

Last updated at Posted at 2020-10-23

やりたい事

Jenkinsで ジョブをビルドすると、[コンソール出力]画面にて ログを確認することができる。
このコンソール出力 で表示されているログを、テキストファイルで取得したい。

コンソール出力 取得

curl コマンドを実行して コンソール出力 をテキストファイルで取得する。

curl https://<JENKINS_HOST>/job/<JOB_NAME>/<BUILD_NUMBER>/consoleText --output <出力ファイル名> -k --user <ユーザー名>:<パスワード>

--output オプション にて、*<出力ファイル名>を指定。
-k オプション で、SSL証明書のエラーを無視する。(デフォルトでは すべてのSSL接続の安全性が確認される。)
--user オプションで、
<ユーザー名>*と*<パスワード>*を指定。

参考情報

How To Use - curl
https://curl.haxx.se/docs/manpage.html

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?