Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
odoo-demo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ndoumbe
odoo-demo
Commits
4ee507dc
Commit
4ee507dc
authored
Jan 02, 2025
by
Khady Diagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfileargo
parent
32adfa57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Jenkinsfileargo
Jenkinsfileargo
+7
-8
No files found.
Jenkinsfileargo
View file @
4ee507dc
...
...
@@ -9,7 +9,6 @@ pipeline {
stages {
stage('Cloning Git') {
steps {
// Cloner le dépôt Git contenant le Dockerfile et l'application Odoo
git([url: 'https://gitlab.baamtu.com/diopbe/odoo-demo.git', branch: 'khady'])
}
}
...
...
@@ -17,8 +16,7 @@ pipeline {
stage('Building Docker Image') {
steps {
script {
// Construire l'image Docker pour l'application Odoo
dockerImage = docker.build(imagename, ".")
dockerImage = docker.build("${imagename}:${BUILD_NUMBER}", ".")
}
}
}
...
...
@@ -26,9 +24,8 @@ pipeline {
stage('Push Docker Image') {
steps {
script {
// Pousser l'image Docker vers Docker Hub
docker.withRegistry('', registryCredential) {
dockerImage.push("$
BUILD_NUMBER
")
dockerImage.push("$
{BUILD_NUMBER}
")
dockerImage.push('latest')
}
}
...
...
@@ -38,8 +35,11 @@ pipeline {
stage('ArgoCD Deployment') {
steps {
script {
// Appliquer le fichier YAML pour le déploiement avec ArgoCD
try {
bat 'kubectl apply -f argocd_deploy.yaml --validate=false'
} catch (Exception e) {
error "Deployment failed: ${e.message}"
}
}
}
}
...
...
@@ -47,7 +47,6 @@ pipeline {
stage('Verify Deployment') {
steps {
script {
// Vérifier que les ressources Kubernetes sont correctement déployées
bat 'kubectl get all -n default'
bat 'kubectl get pv'
bat 'kubectl get pvc'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment