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
f628a240
Commit
f628a240
authored
Dec 23, 2024
by
Mame Bineta Diakite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
db3a2592
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
61 deletions
+1
-61
Jenkinsfile
Jenkinsfile
+1
-61
No files found.
Jenkinsfile
View file @
f628a240
...
...
@@ -38,65 +38,5 @@ pipeline {
}
}
stage
(
'Deploy with Helm'
)
{
steps
{
script
{
sh
"""
helm upgrade --install ${HELM_RELEASE} ./charthelm-odoo \
--set image.repository=${DOCKER_REGISTRY}/${IMAGE_NAME} \
--set image.tag=${env.BUILD_NUMBER} \
--kube-context ${KUBE_CONTEXT}
"""
}
}
}
stage
(
'Sync with ArgoCD'
)
{
steps
{
script
{
sh
"""
argocd app sync ${HELM_RELEASE} --kube-context ${KUBE_CONTEXT}
"""
}
}
}
stage
(
'Send Notification to Google Chat'
)
{
steps
{
script
{
def
message
=
"""
{
"text": "Pipeline completed successfully for build #${env.BUILD_NUMBER} of ${IMAGE_NAME}."
}
"""
sh
"""
curl -X POST -H "Content-Type: application/json" \
-d '${message}' \
"${GOOGLE_CHAT_WEBHOOK}"
"""
}
}
}
}
post
{
always
{
cleanWs
()
}
failure
{
script
{
def
message
=
"""
{
"text": "Pipeline failed for build #${env.BUILD_NUMBER} of ${IMAGE_NAME}. Please check the logs."
}
"""
sh
"""
curl -X POST -H "Content-Type: application/json" \
-d '${message}' \
"${GOOGLE_CHAT_WEBHOOK}"
"""
}
}
}
}
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