-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathssdevent.sh
More file actions
27 lines (27 loc) · 1.3 KB
/
Copy pathssdevent.sh
File metadata and controls
27 lines (27 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
stage('Notify SSD') {
steps {
sh """
curl --location '<SSDURL>/webhook/v1/ssd' \\
--header 'Content-Type: application/json' \\
--header 'X-OpsMx-Auth: <Token>' \\
--data '{
"jobname": "${JOB_NAME}",
"buildnumber": "${BUILD_NUMBER}",
"joburl": "${JOB_URL}",
"builduser": "BuildUser",
"giturl": "${GIT_URL}",
"gitbranch": "main",
"account": "dev",
"applicationname": "AppName",
"namespace": "default",
"artifacts": [
{ "image": "${ECR_REGISTRY}/docker-swarm:${BUILD_NUMBER}", "service": "$ServiceName", "sourcecodepath": "$ServiceName" },
{ "image": "${ECR_REGISTRY}/buildme:${BUILD_NUMBER}", "service": "$ServiceName", "sourcecodepath": "$ServiceName" },
{ "image": "${ECR_REGISTRY}/mongo:${BUILD_NUMBER}", "service": "$ServiceName", "sourcecodepath": "$ServiceName" },
{ "image": "${ECR_REGISTRY}/petclinic:${BUILD_NUMBER}", "service": "$ServiceName", "sourcecodepath": "$ServiceName" },
{ "image": "${ECR_REGISTRY}/scout:${BUILD_NUMBER}", "service": "$ServiceName", "sourcecodepath": "$ServiceName" }
]
}'
"""
}
}