Change Velocity implementation failing ADO pipeline

derekkelly
Tera Contributor

I am trying an initial installation of Change Velocity but cannot get the Pipeline to trigger change creation correctly.

 

Cannot see what is wrong in the YAML code so any help is appreciated;

 

YAML Code;

trigger:
  - main
 
stages:
stage'Dev_Deploy'
  displayName'Deploy to Dev Environment'
  jobs:
  - job'Dev_Deploy'
    displayName'Dev Deploy job'
    pool:
      vmImageubuntu-latest
 
    steps:
    - scriptecho Hello, world!
      displayName'Run a one-line script'

stage'PreProd_Deploy'
  displayName'Deploy to the PreProd environment'
  dependsOn: [Dev_Deploy]
  condition:  succeeded()
  jobs:
  - job'ChangeApproval'
    displayName'Change Approval Job'
    poolserver
    steps:
    - taskServiceNow-DevOps-Server-Change-Acceleration@1
        inputs:
                  connectedServiceName'XXXXXXX.service-now.com' ServiceNow DevOps Service Connection'
                  changeRequestDetails: |
                    {
                      "setCloseCode"false,
                      "attributes": {
                        "requested_by": {
                            "name""test user"
                        },
                        "category""DevOps",
                        "priority""2",
                        "comments""This is a sample pipeline script to be added in your change step",
                        "work_notes""Update this to work_notes",
                        "start_date""2024-01-24 11:59:59",
                        "end_date""2024-01-24 11:59:59"
                     }
                    }
  - job'PreProd_Deploy'
    displayName'PreProd Deploy job'
    pool:
      vmImageubuntu-latest
 
    steps:
    - scriptecho Hello, world!
      displayName'Run a one-line script'
 
stage'Prod_Deploy'
  displayName'Deploy to the Prod environment'
  dependsOn: [PreProd_Deploy]
  condition:  succeeded()
  jobs:
   - job'Prod_Deploy'
     displayName'Prod Deploy job'
     pool:
       vmImageubuntu-latest
 
     steps:
     - scriptecho Hello, world!
       displayName'Run a one-line script'

 

3 REPLIES 3

Senthilnathan R
ServiceNow Employee
ServiceNow Employee

Hi @derekkelly I too dont see an issue in this ADO pipeline. We need to check if the service connection is good, which is sending the notifications and inbound events in ServiceNow is good.
Could you please create a case and share it. We will check it out.

 

Thanks
Senthil

sureshloganath1
Tera Contributor

Hi, I'm also facing the same issue.  Is the issue resolved? Can you please help what solution applied?

ersureshbe
Giga Sage
Giga Sage

Hi, I hope domain separation is enabled in your system. Can you 'DevOps Change User' account available in your sys_user table? 'DevOps Change User' account created by plugin and It should map with parent domain if domain sepration is enabled.

 

The above code shows 'test user' account used by you. Can you replace by 'DevOps Change user' and check it will work as you expected.

Regards,
Suresh.