Nueva instancia Jenkins como código
View/Open
Memòria (3,035Mb) (Restricted access)
Article (241,9Kb) (Restricted access)
Cita com:
hdl:2117/392252
Author's e-mailedu.pm97
gmail.com

CovenanteeHP Printing and Computing
Document typeBachelor thesis
Date2023-07-11
Rights accessRestricted access - confidentiality agreement
(embargoed until 2028-07-11)
All rights reserved. This work is protected by the corresponding intellectual and industrial
property rights. Without prejudice to any existing legal exemptions, reproduction, distribution, public
communication or transformation of this work are prohibited without permission of the copyright holder
Abstract
El presente trabajo se ha realizado con la empresa HP Inc., y tiene como objetivo principal la creación de una nueva instancia de Jenkins, un servidor de automatización de código abierto ampliamente utilizado en entornos de desarrollo de software. Se ha utilizado la metodología de configuración como código para definir y gestionar la infraestructura y la configuración de Jenkins, lo cual permite tener un enfoque reproducible y escalable en la implementación y mantenimiento del servidor.
Además, para garantizar la portabilidad y aislamiento de la instancia de Jenkins, se ha utilizado Docker, una plataforma de contenedores, para encapsular todo el entorno en un contenedor de aplicación. Esto permite una fácil replicación y despliegue del servidor Jenkins en diferentes entornos, facilitando así la escalabilidad y la migración.
También se ha hecho uso de Ansible, una herramienta de automatización, para orquestar la creación y configuración del entorno de Jenkins. Se han creado diversos Playbooks de Ansible que han servido para instalar dependencias, configurar servidores y agentes.
Dentro del servidor Jenkins se han implementado varias Pipelines utilizando el lenguaje de programación Groovy, que es el lenguaje nativo de Jenkins. Estas Pipelines han servido para automatizar tareas, se han conectado con Github y han permitido el testeo del código de otros desarrolladores. También se ha hecho uso de diferentes plugins que ofrece Jenkins para mejorar el uso de las Pipelines.
En conclusión, a través de estas diferentes herramientas como Ansible, Docker y Jenkins, se ha logrado crear una instancia de Jenkins fácilmente escalable y replicable en un entorno seguro y eficiente debido a que ha sido todo configurado como código. This project has been done with the enterprise HP Inc., and the main objective of this work is to create a new instance of Jenkins, an open source automation server widely used in software development environments. The configure-as-code methodology has been used to define and manage the Jenkins infrastructure and configuration, allowing for a reproducible and scalable approach to server deployment and maintenance.
Also, to ensure the portability and isolation of the Jenkins instance, Docker, a container platform, has been used to encapsulate the entire environment in an application container. This allows easy replication and use of the Jenkins server in different environments, thus facilitating scalability and migration.
Ansible, an automation tool, has also been used to orchestrate the creation and configuration of the Jenkins environment. Several Ansible Playbooks have been created that have been used to install dependencies, configure servers and agents.
Within the Jenkins server several Pipelines have been implemented using the Groovy programming language, which is the native language of Jenkins. These Pipelines have served to automate tasks, have been connected to Github and have allowed the testing of other developers' code. Different plugins offered by Jenkins have also been used to improve the use of Pipelines.
In conclusion, through these different tools such as Ansible, Docker and Jenkins, it has been possible to create an easily scalable and replicable Jenkins instance in a safe and efficient environment because everything has been configured as code.
SubjectsComputer software, Client/server computing, Programari, Arquitectura client-servidor (Informàtica)
DegreeGRAU EN ENGINYERIA INFORMÀTICA (Pla 2018)
Files | Description | Size | Format | View |
---|---|---|---|---|
New Jenkins Instance as Code.pdf![]() | Memòria | 3,035Mb | Restricted access | |
RESUMEN_TFG.pdf![]() | Article | 241,9Kb | Restricted access |