@@ -38,7 +38,7 @@ This will create a executable sndevopscli in bin folder ( /usr/loca/bin/)
3838** Running CLI**
3939
4040``` sh
41- sndevopscli create pakcage --help
41+ sndevopscli create package --help
4242```
4343### Removing symlink
4444
@@ -48,22 +48,22 @@ npm unlink .
4848
4949## Creating Docker image
5050
51- ### Buildng docker image
51+ ### Building docker image
5252
5353``` sh
54- docker build -t dockerusername /sndevops-cli:0.35 .
54+ docker build -t servicenowdocker /sndevops-cli:0.01 .
5555```
5656
5757``` sh
58- docker push dockerusername /sndevops-cli:0.35
58+ docker push servicenowdocker /sndevops-cli:0.01
5959```
6060
6161## Integrating with gitlab
6262
63- [ Example gitlab project] ( https://gitlab.k8s.sndevops .xyz/devops-admin/helloworld/-/blob/main/.gitlab-ci.yml?ref_type=heads )
63+ [ Example gitlab project] ( https://gitlab.xxxx.xxxxx .xyz/devops-admin/helloworld/-/blob/main/.gitlab-ci.yml?ref_type=heads )
6464
6565
66- ** Example with passing all ServiceNow info via commandlie **
66+ ** Example with passing all ServiceNow info via commandline **
6767
6868``` yaml
6969
@@ -72,7 +72,7 @@ stages:
7272
7373package :
7474 stage : package
75- image : sannrao /sndevops-cli:0.35
75+ image : servicenowdocker /sndevops-cli:0.35
7676 script :
7777 - sndevopscli create artifact -a '[{"name":"artifact-name-$CI_JOB_ID","repositoryName":"artifact-repo-name" ,"version":"1.3.0"}]'
7878 - sndevopscli create package -n "package-mame" -a '[{"name":"artifact-name-$CI_JOB_ID","repositoryName":"artifact-repo-name" ,"version":"1.3.0"}]
@@ -87,15 +87,15 @@ SNOW_TOKEN = <servicenow-tool-token>
8787SNOW_TOOLID = <servicenow-tool-id>
8888```
8989
90- ** Example with passing all ServiceNow info via commandlie **
90+ ** Example with passing all ServiceNow info via commandline **
9191``` yaml
9292
9393stages :
9494 - package
9595
9696package :
9797 stage : package
98- image : sannrao /sndevops-cli:0.35
98+ image : servicenowdocker /sndevops-cli:0.35
9999 script :
100100 - sndevopscli create artifact -u <serviceno-url> -t <tool-id> --token <tool-token> -a '[{"name":"artifact-name-$CI_JOB_ID","repositoryName":"artifact-repo-name" ,"version":"1.3.0"}]'
101101 - sndevopscli create package -u <serviceno-url> -t <tool-id> --token <tool-token> -n "package-mame" -a '[{"name":"artifact-name-$CI_JOB_ID","repositoryName":"artifact-repo-name" ,"version":"1.3.0"}]
@@ -108,9 +108,9 @@ package:
108108stages :
109109 - DevOpsChangeApproval
110110
111- package :
111+ ServiceNow DevOps Change :
112112 stage : DevOpsChangeApproval
113- image : smrutisnow /sndevops-cli:0.35
113+ image : servicenowdocker /sndevops-cli:0.35
114114 script :
115115 - 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"}}'
116116
0 commit comments