Curso Jenkins Integration with Jenkins for Developers and DevOps Initiatives

  • DevOps | CI | CD | Kubernetes | Web3

Curso Jenkins Integration with Jenkins for Developers and DevOps Initiatives

16 horas
Visão Geral

Este Curso Jenkins Integration with Jenkins for Developers and DevOps Initiatives, ensina os participantes como usar o sistema Jenkins Continuous Integration de forma eficiente e eficaz. Os alunos aprendem como instalar o Jenkins em uma máquina Windows, criar trabalhos do Jenkins, configurar a autenticação de usuário do Jenkins e explorar os plug-ins do Jenkins comumente usados.

Jenkins é um aplicativo premiado que monitora execuções de trabalhos repetidos, como a construção de um projeto de software ou trabalhos executados pelo cron. Entre essas coisas, o Jenkins atual se concentra nos dois trabalhos a seguir:

  • Construir/testar projetos de software continuamente. Jenkins fornece um sistema de integração contínua fácil de usar, tornando mais fácil para os desenvolvedores integrarem as alterações do projeto e facilitando aos usuários a obtenção de uma nova construção. A construção automatizada e contínua aumenta a produtividade do desenvolvimento.
  • Monitoramento de execuções de trabalhos executados externamente, como trabalhos cron e trabalhos procmail, mesmo aqueles executados em uma máquina remota. Por exemplo, com o Cron, tudo o que você recebe são e-mails regulares que capturam o resultado, e cabe a você observá-los com atenção e perceber quando eles quebram. Jenkins mantém essas saídas e facilita perceber quando algo está errado.

Este Curso Jenkins Integration with Jenkins for Developers and DevOps Initiatives, proporcionará aos alunos uma compreensão dos princípios da integração contínua e o conhecimento de como implementar a integração contínua com execução automatizada de testes usando Jenkins. Os alunos usarão uma cópia local do Jenkins para criar e executar trabalhos, vincular-se a um sistema de controle de versão, executar testes automatizados e gerar relatórios de desenvolvimento.

Objetivo

Após reailizar este Curso Jenkins Integration with Jenkins for Developers and DevOps Initiatives, você será capaz de:

  • Instalar e configurar o Jenkins em um contêiner de servlet
  • Criar compilações Jenkins
  • Configure e use Apache Ant e Apache Maven com Jenkins
  • Use Jenkins para gerar relatórios de padrões de codificação Java, relatórios de cobertura de código e avisos de mudança
  • Use Jenkins para implantar software automaticamente em um ambiente de teste.
Pre-Requisitos
  • Os participantes devem ter familiaridade com as práticas de desenvolvimento Java.
Materiais
Português + Exercícios + Lab Pratico
Conteúdo Programatico

Introduction to Continuous Integration, Continuous Delivery, and Jenkins-CI

  1. Foundation of Agile AppDev
  2. XP Flow
  3. Extreme Programming
  4. Agile Development
  5. What is Continuous Integration
  6. Typical Setup for Continuous Integration
  7. Setup Notes for Continuous Integration
  8. CI with Artifact Management
  9. What is Continuous Delivery?
  10. Why Continuous Delivery?
  11. DevOps and Continuous Delivery
  12. Continuous Delivery Challenges
  13. Continuous Delivery vs Continuous Deployment
  14. Jenkins Continuous Integration
  15. Jenkins Features
  16. Running Jenkins

Installing and Running Jenkins

  1. Downloading and Installing Jenkins
  2. Running Jenkins as a Stand-Alone Application
  3. Running Jenkins as a Stand-Alone Application (cont'd)
  4. Running Jenkins on an Application Server
  5. The Jenkins Home Folder
  6. Installing Jenkins as a Windows Service
  7. Initial Configuration
  8. Configuration Wizard
  9. Configuring Tools
  10. Configuring Tools - Best Practices
  11. Logging in Jenkins
  12. Custom Log Recorders

Job Types in Jenkins

  1. Introduction
  2. Different types of Jenkins Items
  3. Configuring Source Code Management (SCM)
  4. Working with Subversion
  5. Working with Git
  6. Storing Credentials
  7. Service Accounts
  8. Storing Credentials
  9. Build Triggers
  10. Schedule Build Jobs
  11. Polling the SCM
  12. Polling vs Triggers
  13. Maven Build Steps

Advanced Jobs

  1. Parameterized Jobs
  2. Built-in Environment Variables
  3. Parameter Types
  4. Defining Parameters
  5. Using Parameters / Environment Variables
  6. Parameters in the config.xml File
  7. Launching a Build with Parameters
  8. Configuration Matrix
  9. Configuration Matrix – Example
  10. Defining Configuration Matrix
  11. Monitoring External Jobs

Non-Java Jenkins Jobs

  1. Jenkins Jobs
  2. Non-Java Jobs
  3. Building .NET Projects with Jenkins
  4. Installing MSTest Plugin in Jenkins
  5. Configuring the MSBuild Plugin
  6. Creating a Jenkins Job and Specify a Build Step
  7. Specifying a Step for Running Unit Tests
  8. Adding a Step for Deploying the .NET Project
  9. Building a Node.js Application with Jenkins
  10. Node.js Plugin
  11. Provides direct Pipeline support
  12. Building a C++ Project with Jenkins
  13. Executing PowerShell Scripts with Jenkins

Continuous Delivery and the Jenkins Pipeline

  1. Continuous Delivery
  2. DevOps and Continuous Delivery
  3. Continuous Delivery Challenges
  4. Continuous Delivery with Jenkins
  5. The Pipeline Plugin
  6. Defining a Pipeline
  7. A Pipeline Example
  8. Parallel Execution
  9. Creating a Pipeline
  10. Invoking the Pipeline
  11. Interacting with the Pipeline
  12. Pipeline vs. Traditional Jobs

Groovy DSL

  1. What is Groovy
  2. Groovy in Jenkins
  3. Comments in Groovy
  4. Data Types
  5. Identifiers
  6. Variables
  7. def
  8. String Interpolation
  9. Operators
  10. Ranges
  11. Conditional Statements
  12. Loops
  13. Lists
  14. Maps
  15. Exception Handling
  16. Methods
  17. Closures
  18. this Keyword
  19. Classes
  20. Static Methods
  21. Inheritance
  22. Abstract Classes
  23. Interfaces
  24. Generics
  25. Jenkins Script Console
  26. Extending with Shared Libraries
  27. Directory Structure
  28. Sample Groovy Code
  29. Defining Shared Libraries
  30. Using Shared Libraries
  31. Same Shared Library Usage Code
  32. Defining Global Variables

Securing Jenkins

  1. Jenkins Security - Overview
  2. Jenkins Security
  3. Authentication
  4. Authorization
  5. Confidentiality
  6. Activating Security
  7. Configure Authentication
  8. Using Jenkins's Internal User Database
  9. Creating Users
  10. Authorization
  11. Authorization
  12. Matrix-Based Security
  13. Note – Create the Administrative User
  14. Project-based Matrix Authorization
  15. Project-Based Authentication
  16. Role Based Access Control
  17. Conclusion

Jenkins Plugins

  1. Introduction
  2. Jenkins Plugins - SCM
  3. Jenkins Plugins – Build and Test
  4. Jenkins Plugins – Analyzers
  5. Jenkins for Teams
  6. Installing Jenkins Plugins

Distributed Builds with Jenkins

  1. Distributed Builds - Overview
  2. Distributed Builds – How?
  3. Agent Machines
  4. Configure Jenkins Master
  5. Configure Projects
  6. Conclusion

Containerized Builds

  1. Introduction to Docker
  2. Docker – Benefits
  3. Containers vs. Virtual Machines
  4. Running Jenkins in a Docker Container
  5. Delete Jenkins Container and Image
  6. Configuring Command Prompt to Connect to Docker
  7. Creating Docker Container from Jenkins Job
  8. Test Custom Image Created by a Jenkins Job
  9. The Jenkins Docker Build Step Plugin
  10. Ephemeral Build Agents

The Jenkins API

  1. Remote Access API
  2. What you can do with the Jenkins Remote API
  3. Remote API and CSRF Protection – API Token
  4. Remote API and CSRF Protection – Crumb
  5. Configure Jobs to Support the Jenkins Remote API
  6. Making Remote API Calls
  7. Example - Advanced REST Client
  8. Example – cURL
  9. Jenkins CLI
  10. Configure Jenkins to use CLI
  11. Download and Use Jenkins CLI

Scripting

  1. Introduction to Scripting
  2. Benefits of Scripting
  3. The Jenkins Script Console
  4. Calling Scripts using cURL
  5. Sample Scripts
  6. Calling Groovy Scripts from a Jenkins Job
  7. Jenkins API

User Interface Options

  1. User Interface Options
  2. Customizing the UI with CSS
  3. The User Content Folder
  4. Using the User Content Folder and Simple Theme Plugin
  5. Writing a Jenkins Plugin
  6. Modify settings.xml
  7. Generate Boilerplate Code for Custom Jenkins Plugin
  8. Modify pom.xml
  9. Package and Deploy the Plugin
  10. The Blue Ocean Plugin
  11. Blue Ocean Plugin Features
  12. New modern user experience
  13. Advanced Pipeline visualizations with built-in failure diagnosis
  14. Branch and Pull Request awareness
  15. Personalized View

Best Practices for Jenkins

  1. Best Practices - Secure Jenkins
  2. Best Practices - Users
  3. Best Practices - Backups
  4. Best Practices - Reproducible Builds
  5. Best Practices - Testing and Reports
  6. Best Practices - Large Systems
  7. Best Practices - Distributed Jenkins
  8. Best Practices - Summary

Lab Exercises

  • Lab 1. Configure Tools in Jenkins
  • Lab 2. Create a Jenkins Job
  • Lab 3. Advanced Jobs
  • Lab 4. Node.js based Jenkins Job
  • Lab 5. Create a Pipeline
  • Lab 6. Advanced Pipeline with Groovy DSL
  • Lab 7. Configure Jenkins Security
  • Lab 8. Optional: Ephemeral Build Agents with Docker
TENHO INTERESSE

Cursos Relacionados

Curso Ansible Red Hat Basics Automation Technical Foundation

16 horas

Curso Terraform Deploying to Oracle Cloud Infrastructure

24 Horas

Curso Ansible Linux Automation with Ansible

24 horas

Ansible Overview of Ansible architecture

16h

Advanced Automation: Ansible Best Practices

32h