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
c59887b7
Commit
c59887b7
authored
Dec 23, 2024
by
Mame Bineta Diakite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update web
parent
6772403c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
Jenkinsfile
Jenkinsfile
+19
-15
No files found.
Jenkinsfile
View file @
c59887b7
...
...
@@ -64,11 +64,11 @@ pipeline {
stage
(
'Send Notification to Google Chat'
)
{
steps
{
script
{
def
message
=
'''
def
message
=
"""
{
"text": "
Build de l'image terminé avec succès :
${IMAGE_NAME}."
"text": "
Pipeline completed successfully for build #${env.BUILD_NUMBER} of
${IMAGE_NAME}."
}
'''
"""
sh
"""
curl -X POST -H "Content-Type: application/json" \
-d '${message}' \
...
...
@@ -80,19 +80,23 @@ pipeline {
}
post
{
failure
{
script
{
def
message
=
"""
{
"text": "Échec du build #${env.BUILD_NUMBER} de l'image ${IMAGE_NAME}."
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}"
"""
}
"""
sh
"""
curl -X POST -H "Content-Type: application/json" \
-d '${message.replace("'", "\\'")}' \
"${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