LoginSignup
1
1

More than 5 years have passed since last update.

他のJenkinsに既存のjob設定を反映する方法

Last updated at Posted at 2018-09-25

手順

1、コピー元のjobの設定ファイルを下記のコマンドで設定ファイルを入手する

sample.sh
curl http://jenkins1/job/Test1/config.xml -o config.xml

2、コピー先のJenkinsで、新規プロジェクト作成→フリースタイル・プロジェクトのビルドでjobを作成する

3、手順1で入手した設定ファイルを下記のコマンドでPOSTする

sample.sh
cat config.xml | curl -X POST -H "Content-type: text/xml" -d @- 'http://jenkins2/job/Test2/config.xml'

上記の手順を実行するとjobの設定が反映されていると思います。

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