The DevOps 2.0 Toolkit by Viktor Farcic
Author:Viktor Farcic
Language: eng
Format: epub
Publisher: Packt Publishing
Now we are ready to create jobs. Since all of them will work in (more or less) the same way, we can use a single template that will serve for all our jobs related with service deployments. We need to create a separate directory for each job, apply the template, copy the result to the destination server and, finally, if any of the jobs changed, reload Jenkins. Unlike plugins that require a full restart, Jenkins will start using new jobs after the reload which is a very fast (almost instantaneous) action:
- name: Job directories are present file: path: "{{ home }}/jobs/{{ item.name }}" state: directory mode: 0777 with_items: jobs tags: [jenkins] - name: Jobs are present template: src: "{{ item.src }}" dest: "{{ home }}/jobs/{{ item.name }}/config.xml" mode: 0777 with_items: jobs register: jobs_result tags: [jenkins] - name: Jenkins is reloaded uri: url: http://{{ ip }}:8080/reload method: POST status_code: 200,302 when: jobs_result|changed ignore_errors: yes tags: [jenkins]
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Linux Device Driver Development Cookbook by Rodolfo Giometti(3957)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(3787)
Implementing Cellular IoT Solutions for Digital Transformation by Dennis McCain(3705)
Embedded Linux Development Using Yocto Project - Third Edition by Otavio Salvador & Daiane Angolini(3557)
TinyML Cookbook by Gian Marco Iodice(3472)
Simplifying 3D Printing with OpenSCAD by Colin Dow(2861)
TinyML Cookbook by Gian Marco Iodice & Ronan Naughton(2623)
Fusion 360 for Makers by Lydia Sloan Cline(2231)
Networking A Beginner's Guide by Bruce Hallberg(2229)
Hands-On Linux for Architects by Denis Salamanca(2074)
But How Do It Know? by J. Clark Scott(2039)
Computers For Seniors For Dummies by Nancy C. Muir(2023)
Raspberry Pi and MQTT Essentials by Dhairya Parikh(1980)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1963)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1918)
Hack and HHVM by Owen Yamauchi(1904)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1878)
MicroPython Projects by Jacob Beningo(1768)
Hands-On Internet of Things with MQTT by Tim Pulver(1731)
