From b57ef720d6a358727b08c5de432ad666acdde7d2 Mon Sep 17 00:00:00 2001 From: greydonbuckley <51009262+greydonbuckley@users.noreply.github.com> Date: Wed, 21 Aug 2024 21:42:18 -0700 Subject: [PATCH] Update pipeline1.yml --- .github/workflows/pipeline1.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/pipeline1.yml b/.github/workflows/pipeline1.yml index bfaa7e2..483d5b3 100644 --- a/.github/workflows/pipeline1.yml +++ b/.github/workflows/pipeline1.yml @@ -37,3 +37,18 @@ jobs: steps: - name: Run a one-line script run: echo Running deploy step + - name: ServiceNow Change + uses: ServiceNow/servicenow-devops-change@v1.38.0 + with: + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + job-name: 'Deploy' + change-request: '{"setCloseCode":"true","attributes":{"short_description":"Deploy to production","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","implementation_plan":"Software update is tested and results can be found in Test Summaries Tab; When the change is approved the implementation happens automated by the CICD pipeline within the change planned start and end time window.","backout_plan":"When software fails in production, the previous software release will be re-deployed.","test_plan":"Testing if the software was successfully deployed"}}' + interval: '100' + timeout: '3600' + changeCreationTimeOut: '3600' + abortOnChangeCreationFailure: true + abortOnChangeStepTimeout: true