Logo Atlas
  • Home
  • About Me
  • Skills
  • Education
  • Recent Posts
  • Certifications
  • Posts
  • English
    Español English
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Tags
  • ACLs
  • ANDORID
  • APACHE
  • ARP
  • ASIR
  • ASO
  • AW
  • BIND9
  • CENTOS
  • CI/CD
  • CISCO
  • CMS
  • Comands
  • Containers
  • Contenedores
  • Controladores NVIDIA
  • DEBIAN
  • Debian 12
  • DHCP
  • DNAT
  • DNS
  • DNSMASQ
  • Docker
  • Enrutamiento
  • FIREWALL
  • FORENSE
  • FORTINET
  • FORWARDING
  • FTP
  • GNS3
  • HTTPS
  • IPTABLES
  • IPv4
  • IPv6
  • ISO
  • IWEB
  • Jenkins
  • Jenkis
  • Kubernetes
  • KVM
  • LAMP
  • LEMP
  • LINUX
  • MariaDB
  • Metrics
  • Mysql
  • NAT
  • Network
  • Networking
  • NFTABLES
  • NVIDIA Drivers
  • Observability
  • OPENVPN
  • Oracle
  • PostgreSQL
  • Prometheus
  • Redes
  • REDHAT
  • ROCKY
  • Routing
  • Services
  • Servicios
  • Sistemas
  • SMR
  • SNAT
  • SSH
  • STRONGSWAN
  • Switches
  • VPN
  • Windows
  • WIREGUARD
  • Wireshark
  • WordPress
Hero Image
Practice CI/CD with Jenkins

The objective of this practice is the gradual development of a Pipeline that will perform tasks on the repository of an application. The application we’re going to work with will be your fork of the Django Polls application. As we have seen, this application that implements the Django tutorial has a test module. We will build the Pipeline in several phases: Exercise 1: Construction of a Docker image We start from the pipeline that we have developed in the Workshop 3: Continuous integration of Django application (Test), where we have automated the application test.

  • Jenkins
  • CI/CD
Thursday, March 14, 2024 | 3 minutes Read
Hero Image
Workshop 1: Markdown (test)

Workshop 1: Ortho-rector of markdown documents (test) What do you have to deliver? The URL of your GitHub repository. https://github.com/javierasping/taller1_jenkins_ic-diccionario The content of your file ‘Jenkinfle’. pipeline { agent { docker { image 'debian' args '-u root:root' } } stages { stage('Clone') { steps { git branch:'master', url:'https://github.com/javierasping/taller1_jenkins_ic-diccionario.git' } } stage('Install') { steps { sh 'apt-get update && apt-get install -y aspell-es ' } } stage('Test') { steps { sh ''' export LC_ALL=C.UTF-8 OUTPUT=`cat doc/*.md | aspell list -d es -p ./.aspell.es.pws` if [ -n "$OUTPUT" ]; then echo $OUTPUT exit 1 fi ''' } } } post { always { mail to: 'javierasping@gmail.com', subject: "Status of pipeline: ${currentBuild.fullDisplayName}", body: "${env.BUILD_URL} has result ${currentBuild.result}" } } } A screenshot where you see the pipeline trigger configuration.

  • Jenkis
  • CI/CD
Thursday, March 14, 2024 | 1 minute Read
Hero Image
Workshop 2: Valid HTML5 Check and surge.sh Deployment (Test and Deploy)

In this exercise, we want to deploy an HTML5 page on the service surge.sh. We also want to check if the HTML5 code is valid. These two operations—checking if the HTML5 is valid (test) and deploying to surge.sh (deploy)—will be automated using Jenkins (CI/CD). Remember that the repository is https://github.com/josedom24/ic-html5. As we saw in Example 2, to do the deployment, we need to save the token obtained from surge.sh. Let’s see how to work with credentials in Jenkins.

  • Jenkins
  • CI/CD
Thursday, March 14, 2024 | 2 minutes Read
Hero Image
Workshop 3: Continuous Integration of Django Application (Test)

We will work with the application repository django_tutorial. This application has a series of tests defined, which can be studied in the tests.py file in the polls directory. Each test is defined by a function. In the file, you can read the comments to understand what each test is checking, or you can refer to the document Tests in the Django tutorial application. To run the tests, execute: python3 manage.py test At this moment, a temporary database is created where the defined tests are executed:

  • Jenkins
  • CI/CD
Thursday, March 14, 2024 | 3 minutes Read
Navigation
  • About Me
  • Skills
  • Education
  • Recent Posts
  • Certifications
Contact me:
  • contacto@javiercd.es
  • javierasping
  • Francisco Javier Cruces Doval

Liability Notice: This theme is under MIT license. So, you can use it for non-commercial, commercial, or private uses. You can modify or distribute the theme without requiring any permission from the theme author. However, the theme author does not provide any warranty or takes any liability for any issue with the theme.


Toha Theme Logo Toha
© 2023 Copyright.
Powered by Hugo Logo