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
**Example of change creation for ServiceNow via commandline**
120
125
```yaml
121
126
127
+
This custom step needs to be added at job level to create change in ServiceNow instance.
128
+
122
129
stages:
123
130
- DevOpsChangeApproval
124
131
125
132
ServiceNow DevOps Change:
126
133
stage: DevOpsChangeApproval
127
-
image: servicenowdocker/sndevops-cli:0.35
134
+
image: servicenowdocker/sndevops-cli:0.01
128
135
script:
129
136
- 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"}}'
130
137
138
+
changeStepDetails: [optional]
139
+
It holds the timeout and interval details.
140
+
141
+
interval: [optional]
142
+
The time in seconds to wait between trying the API. The default value is 100 seconds.
143
+
144
+
timeout: [optional]
145
+
The maximum time in seconds to wait until the action should fails. The default value is 3600 seconds.
146
+
147
+
attributes: [optional]
148
+
The change request attribute details are to be used while creating change in ServiceNow instance. The change request is a JSON object surrounded by curly braces {} containing key-value pairs separated by a comma ,. A key-value pair consists of a key and a value separated by a colon :. The keys supported in key-value pair are short_description, description, assignment_group, implementation_plan, backout_plan, test_plan etc.
149
+
150
+
151
+
131
152
```
132
153
133
154
**Example of sonar summary for ServiceNow via commandline**
134
155
```yaml
135
156
157
+
This custom step needs to be added at job level to create sonar summary in ServiceNow instance.
- sndevopscli create change -p '{"changeStepDetails":{"timeout":3600,"interval":100},"attributes":{"short_description":"Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"xxxxxx","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