TEACHERS
GALLERY
PRICING
SIGN IN
TRY ZURU
GET STARTED
Loop
Audio
Interval:
5s
10s
15s
20s
60s
Play
1 of 23
Slide Notes
Download
Go Live
New! Free Haiku Deck for PowerPoint Add-In
Gitflow + CI
Share
Copy
Download
0
358
Published on Nov 18, 2015
CI, unit testing and deployment integration with Rundeck + Puppet.
View Outline
MORE DECKS TO EXPLORE
PRESENTATION OUTLINE
1.
Gitflow + CI
Integración al flujo de desarrollo
Photo by
yukop
2.
Agenda
Gitflow Workflow
jgitflow maven plugin
Gitlab CI
PARD + Rundeck
Roadmap
3.
Gitflow workflow
https://de.atlassian.com/git/tutorials
Photo by
e2esound
4.
Branching model
Historical branches
Feature branches
Release branches
Hotfix branches
Photo by
steveyb
5.
jgitflow maven plugin
gitflow + maven
Photo by
NatBat
6.
Setup
parent-pom 1.0.11
Remover definiciones
[WIP] gulpfile.js
7.
:feature-start
Al comenzar tarea
Branch de develop
Branch feature/*
git add / commit / push
Photo by
Andrew_D_Hurley
8.
:feature-finish
Luego de MR
mvn test install
Merge a develop
git push origin :feature/*
git fetch --all --prune
Photo by
Andrew_D_Hurley
9.
:hotfix-start
Ante arreglos simples
Branch de master -> hotfix/[tag]
Nueva versión minor
Actualiza versiones en pom.xml
Push hotfix branch
Photo by
miki
10.
:hotfix-finish
Nueva release rápida
Merge a master y develop
mvn install test
Nuevo [tag] -> push
git push origin :hotfix/*
git fetch --all --prune
Photo by
avrene
11.
:release-start
Ante nueva versión
Branch de develop -> release/[tag]
Versión SNAPSHOT -> nueva versión
Si existe [tag], falla
Actualiza poms
Photo by
bdesham
12.
:release-finish
mvn install test
Merge a master
Nueva versión SNAPSHOT en develop
Actualiza poms
git push origin :release/[tag]
git fetch --all --prune
Nuevo [tag] -> CI
Photo by
phxcc
13.
Gitlab CI
Integrando deploys y tests unitarios
Photo by
A Mulligan
14.
Integración Contínua
http://ci.contenta/
Push a repo dispara builds -> tests unitarios
.gitlab-ci.yml
Revisión frecuente íntegra
15.
Entrega Contínua
Tests automatizados
mvn deploy a Nexus
Deployment manual a producción
Adaptado de CD
16.
PARD + Rundeck
Deploy a producción
17.
Puppet deploy (I)
http://coderepo.contenta/it/pard
http://gwildor.contenta:4440
Interfaz gráfica de jobs de deploy
python + Puppet + Rundeck
Photo by
MIKI Yoshihito (´・ω・)
18.
Puppet deploy (II)
Tags disparan mvn deploy en CI
Artifact (.war/.zip) en Nexus
Rundeck permite seleccionarlos
Se ejecuta PARD + Puppet en cada nodo
Photo by
MIKI Yoshihito (´・ω・)
19.
PARD
Descarga de artifact
Checksum MD5 de descarga
Descompresión de .zip/.war
Smoke testing a /build/git/services o index.html
Automatizado con Rundeck
Photo by
yukop
20.
Roadmap
Resta por hacer
Photo by
katerha
21.
Terminar (I)
.gitlab-ci.yml y parent-pom en todos los proyectos
Configuración de aplicación externalizada
gulp-gitflow
22.
Mejorar (II)
Perfiles en Puppet
Deploy automáticos para develop
Integrar con trello
Registro de deploys -> dashboard?
Alternativas: Docker, ElasticBox.
23.
Eso es todo
Photo by
erikaow
Nicolás Fantone
https://github.com/nfantone
×
Error!