You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-20Lines changed: 10 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,6 @@
2
2
3
3
New repository for developing a plugin to integrate between ITSM DevOps and GitLab pipelines
4
4
5
-
### Owners
6
-
7
-
> ramachandrarao.p
8
-
9
-
### How to build on Jenkins
10
-
* Create a `pom.xml` file at the root level
11
-
* Go to the [BT1 Service Catalog](https://buildtools1.service-now.com/nav_to.do?uri=%2Fcom.glideapp.servicecatalog_cat_item_view.do%3Fv%3D1%26sysparm_id%3D9dbd0c54db1acb403a3d5dd5ce961948%26sysparm_link_parent%3Dad2fecb72bfc310052f7c71317da157e%26sysparm_catalog%3De0d08b13c3330100c8b837659bba8fb4%26sysparm_catalog_view%3Dess%26sysparm_view%3Dess) to request a Jenkins job
12
-
13
-
Once the request is processed, a multi-branch job is created on https://buildmaster-hotel.devsnc.com and will build any branches that match [ServiceNow branch naming convention](https://buildtools1.service-now.com/kb_view_customer.do?sysparm_article=KB0528607).
14
-
15
5
# CLI example using npm modules
16
6
17
7
## Build and install
@@ -65,11 +55,11 @@ npm unlink .
65
55
### Building Docker Image
66
56
67
57
```sh
68
-
docker build -t servicenowdocker/sndevops:6.1.0 .
58
+
docker build -t servicenowdocker/sndevops:6.0.0 .
69
59
```
70
60
71
61
```sh
72
-
docker push servicenowdocker/sndevops:6.1.0
62
+
docker push servicenowdocker/sndevops:6.0.0
73
63
```
74
64
75
65
## Integrating with GitLab
@@ -115,7 +105,7 @@ stages:
115
105
116
106
package:
117
107
stage: package
118
-
image: servicenowdocker/sndevops:6.1.0
108
+
image: servicenowdocker/sndevops:6.0.0
119
109
script:
120
110
- sndevopscli create artifact -a '[{"name":"artifact-name","repositoryName":"artifact-repo-name" ,"version":"1.3.0"}]'
121
111
- sndevopscli create package -n "package-name" -a '[{"name":"artifact-name","repositoryName":"artifact-repo-name" ,"version":"1.3.0"}]
- sndevopscli create change -p '{"changeStepDetails":{"timeout":3600,"interval":100},"attributes":{"short_description":"Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"XXXXXXX","implementation_plan":"Software update is tested and results can be found in Test Summaries Tab.","backout_plan":"When software fails in production, the previous software release will be re-deployed.","test_plan":"Testing if the software was successfully deployed or not"}}'
- sndevopscli get change -p "{\"buildNumber\":\"buildNumber\",\"stageName\":\"ServiceNow DevOps Change Step\",\"pipelineName\":\"GitlabDockerGetAndUpdateChange\"}"
250
240
@@ -280,7 +270,7 @@ stages:
280
270
281
271
ServiceNow DevOps Update Change:
282
272
stage: DevOpsUpdateChangeStage
283
-
image: servicenowdocker/sndevops:6.1.0
273
+
image: servicenowdocker/sndevops:6.0.0
284
274
script:
285
275
- sndevopscli update change -n 'CHGXXXXXX' -p "{\"short_description\":\"Automated Software Deployment\",\"description\":\"Automated Software Deployment.\",\"assignment_group\":\"XXXXX\",\"implementation_plan\":\"Software update is tested and results can be found in Test Summaries Tab.\",\"backout_plan\":\"When software fails in production, the previous software release will be re-deployed.\",\"test_plan\":\"Testing if the software was successfully deployed or not\"}"
286
276
@@ -307,7 +297,7 @@ stages:
307
297
308
298
ServiceNow DevOps Change Step:
309
299
stage: changeapproval
310
-
image: servicenowdocker/sndevops:6.1.0
300
+
image: servicenowdocker/sndevops:6.0.0
311
301
script:
312
302
- sndevopscli create change -p "{\"changeStepDetails\":{\"timeout\":3600,\"interval\":100},\"autoCloseChange\":true,\"attributes\":{\"short_description\":\"Automated Software Deployment\",\"description\":\"Automated Software Deployment.\",\"assignment_group\":\"xxxxxxxx\",\"implementation_plan\":\"Software update is tested and results can be found in Test Summaries Tab.\",\"backout_plan\":\"When software fails in production, the previous software release will be re-deployed.\",\"test_plan\":\"Testing if the software was successfully deployed or not\"}}"
0 commit comments