Last week I spent some time to setup a new jenkins server, I need to migrate from the old server to new server, including:
- install all the plugins,
- and import all the jenkins jobs from the old server to the new server.
I found jenkins-cli is so powerful and so easy to use, it is a big helper. Now I would like to share how I use this powerful tool.
Download jenkins-cli
You can download the JAR file for the client from the URL "/jnlpJars/jenkins-cli.jar" on your Jenkins server, e.g. http://jenkins.example.com/jnlpJars/jenkins-cli.jar
List plugins
java -jar jenkins-cli.jar -s http://your-jenkins-server/ list-plugins
Migrate the plugins
To install plugins which are installed in the old servers, use the following command:
java -jar jenkins-cli.jar -s http://old-jenkins-server/ list-plugins | awk '{print $1}' | xargs java -jar jenkins-cli.jar -s http://new-jenkins-server/ install-plugin
Migrate the jenkins jobs
java -jar jenkins-cli.jar -s http://old-jenkins-server/ get-job "my job" > my_job.xml
java -jar jenkins-cli.jar -s http://new-jenkins-server/ create-job "my job" < my_job.xml
Keputusan harus dibuat pada waktu yang dapat diterima untuk berhasil di poker. 1 kesalahan bisa saja melumpuhkan Anda atau mengakhiri peluang Anda untuk menghasilkan tabel terakhir
ReplyDeleteasikqq
dewaqq
sumoqq
interqq
hobiqq
rajawaliqq
http://192.254.236.33/asikqq78/
paito vegas morning
paito warna oregon 03
paito warna oregon 12
Kanarya Adaları yurtdışı kargo
ReplyDeleteKanada yurtdışı kargo
Kamerun yurtdışı kargo
Kamboçya yurtdışı kargo
Jersey yurtdışı kargo
RAAY