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
- 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"}}'
This specifies the branch on which the Sonar scan was executed. By default, it matches the branch for which the build was run. Note, for Harness, the branch option is required if CI_COMMIT_BRANCH is not provided.
196
+
This specifies the branch on which the Sonar scan was executed. By default, it matches the branch for which the build was run. Note, for Harness, the branch option is required if COMMIT_BRANCH is not provided.
It the payload of security result attributes. The payload will have attributes as follows:
216
-
buildNumber: CI_PIPELINE_ID (mandatory)
217
-
pipelineExecutionUrl: CI_PIPELINE_URL (mandatory)
217
+
buildNumber: This specifies ID of the Job (mandatory)
218
+
pipelineExecutionUrl: This specifies the pipeline execution URL (mandatory)
218
219
scanner: Scanning tool and is required e.g. Checkmarx One.
219
220
projectName/projectId: Name/Id of your Checkmarx One project and is required. This attribute is applicable only for Checkmarx One.
220
221
applicationName: Name of your Veracode application and is required. This attribute is applicable only for Veracode.
@@ -234,11 +235,11 @@ stages:
234
235
235
236
ServiceNow DevOps Get Change:
236
237
stage: DevOpsGetChange
237
-
image: servicenowdocker/sndevops:5.1.0
238
+
image: servicenowdocker/sndevops:6.0.0
238
239
script:
239
-
- sndevopscli get change -p "{\"buildNumber\":${CHG_JOB_ID},\"stageName\":\"ServiceNow DevOps Change Step\",\"pipelineName\":\"GitlabDockerGetAndUpdateChange\"}"
240
+
- sndevopscli get change -p "{\"buildNumber\":\"buildNumber\",\"stageName\":\"ServiceNow DevOps Change Step\",\"pipelineName\":\"GitlabDockerGetAndUpdateChange\"}"
240
241
241
-
-p: It stands for changeDetails. The change details to be used for identifying change request in ServiceNow instance. The change details is a JSON object surrounded by curly braces {} containing key-value pair 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 buildNumber, pipelineName, stageName
242
+
-p: It stands for changeDetails. The change details to be used for identifying change request in ServiceNow instance. The change details is a JSON object surrounded by curly braces {} containing key-value pair 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 buildNumber, pipelineName, stageName. All fields in the Change Request table are supported except risk, impact and risk_impact_analysis. For more information, [see documentation](https://docs.servicenow.com/bundle/vancouver-it-service-management/page/product/enterprise-dev-ops/concept/dev-ops-config-change-details.html).
242
243
243
244
buildNumber: [mandatory]
244
245
This specifies ID of the Job where we have created change request.
@@ -270,7 +271,7 @@ stages:
270
271
271
272
ServiceNow DevOps Update Change:
272
273
stage: DevOpsUpdateChangeStage
273
-
image: servicenowdocker/sndevops:5.1.0
274
+
image: servicenowdocker/sndevops:6.0.0
274
275
script:
275
276
- 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\"}"
276
277
@@ -297,7 +298,7 @@ stages:
297
298
298
299
ServiceNow DevOps Change Step:
299
300
stage: changeapproval
300
-
image: servicenowdocker/sndevops:5.1.0
301
+
image: servicenowdocker/sndevops:6.0.0
301
302
script:
302
303
- 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