22
18

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 2013-12-18

本番リリース用とかで、ビルドの時に実行可否の確認をさせたい場合、
[ビルドのパラメータ化]を入れてやると良いらしい。

ビルドの設定画面で、ビルドのパラメータ化にチェックをいれて、
パラメータの追加で真偽値を選択する。

ビルド設定

名前の項目が環境変数になるらしいので、環境変数の中身をチェックして、
falseの場合は実行させないようにすれば良い。

shellの場合

if [ ${confirm} = false ]; then
	exit 1 #0にすると正常終了になる
fi

参考サイト

22
18
1

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
22
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?