From e1d1a4bf2a608f0d45620bf8c9f6c6597795d9fb Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 13 Mar 2023 12:29:48 +0530 Subject: [PATCH 001/124] Update values.yaml sn_devops_change-CHG0030001 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index b0ca81b..37adb94 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 2 +replicaCount: 3 mongo: dbport : 27018 From 88c828a030342732f90268d17e62138f9bae4a72 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:02:08 +0530 Subject: [PATCH 002/124] Update values.yaml sn_devops_change-CHG0030001 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 37adb94..4683b65 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 3 +replicaCount: 4 mongo: dbport : 27018 From 478318479450a983d22fd3feff720b5e19aa0710 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:06:25 +0530 Subject: [PATCH 003/124] sn_devops_change-CHG0030003 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 4683b65..71a4f94 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 4 +replicaCount: 5 mongo: dbport : 27018 From 50a2a29cd5923a824256cda3ad4b9a16c2038fcf Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:40:59 +0530 Subject: [PATCH 004/124] sn_devops_change-CHG0030002 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 71a4f94..db99451 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 5 +replicaCount: 6 mongo: dbport : 27018 From bfea310bbbd13f53ec7f65e907c16bb7f730dc40 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:50:05 +0530 Subject: [PATCH 005/124] sn_devops_change-CHG0030002 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index db99451..256526f 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 6 +replicaCount: 7 mongo: dbport : 27018 From b9e06a137f7dc8a909863260eb4a4aa2ec072158 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:52:40 +0530 Subject: [PATCH 006/124] sn_devops_change-CHG0030004 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 256526f..2c73699 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 7 +replicaCount: 8 mongo: dbport : 27018 From 6f702c3cc3d5250e3023d1c618686b5ded03f790 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 13 Mar 2023 20:29:47 +0530 Subject: [PATCH 007/124] sn_change_request-CHG0030005 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 2c73699..e09516a 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 8 +replicaCount: 9 mongo: dbport : 27018 From a2a16836a7ec403e661d7f4fe4d320d3592b86ae Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 23 Mar 2023 16:59:00 +0530 Subject: [PATCH 008/124] sn_devops_change-TESTDEFN1000942 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index e09516a..c6dc0aa 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 9 +replicaCount: 10 mongo: dbport : 27018 From a1110a94c0bbfa7c52010db249914a8d55311d3d Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 23 Mar 2023 17:13:46 +0530 Subject: [PATCH 009/124] sn_devops_change-CHG0030037 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index c6dc0aa..301107b 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 10 +replicaCount: 11 mongo: dbport : 27018 From 767c0ca55261a2af5cad94ec562d25d3f701f7b7 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 23 Mar 2023 17:59:39 +0530 Subject: [PATCH 010/124] sn_devops_change-CHG003000123 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 301107b..558673f 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 11 +replicaCount: 12 mongo: dbport : 27018 From b8e93db8d49edcec72493ca02090d5a8aa1fb441 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 23 Mar 2023 18:02:54 +0530 Subject: [PATCH 011/124] sn_devops_change-CHG0030001234 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 558673f..28ded49 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 12 +replicaCount: 13 mongo: dbport : 27018 From 5c91b8f0e8c774fbe1ec989f7ece223ba0bc2e14 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 23 Mar 2023 18:09:16 +0530 Subject: [PATCH 012/124] sn_devops_change-CHG0030038 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 28ded49..b966b95 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 13 +replicaCount: 14 mongo: dbport : 27018 From ed28e27bb119c801e4984ed6456846b9dda794d6 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:19:21 +0530 Subject: [PATCH 013/124] sn_devops_change-CHG0030002 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index b966b95..2df5ca9 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 14 +replicaCount: 15 mongo: dbport : 27018 From 3ffe8187ff46613676c220f745fea4951f19a100 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:24:04 +0530 Subject: [PATCH 014/124] sn_change_devops-CHG0030003 --- k8s/helm/values.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yml b/k8s/helm/values.yml index 8342c5c..fd2f7ec 100644 --- a/k8s/helm/values.yml +++ b/k8s/helm/values.yml @@ -1,4 +1,4 @@ -replicaCount: 2 +replicaCount: 3 mongo: dbport : 27017 From 4867533951267f943d572ce570e12e9681a5e96b Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:32:06 +0530 Subject: [PATCH 015/124] sn_devops_change-CHG0030002 --- k8s/helm/values.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yml b/k8s/helm/values.yml index fd2f7ec..c445ac8 100644 --- a/k8s/helm/values.yml +++ b/k8s/helm/values.yml @@ -1,4 +1,4 @@ -replicaCount: 3 +replicaCount: 4 mongo: dbport : 27017 From 38e8a5d1e9fd4ffaf85f052bdf910b90537380ee Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 17 Apr 2023 20:11:13 +0530 Subject: [PATCH 016/124] sn_devops_change-CHG0030004 sn_devops_change-CHG0030004 --- k8s/helm/values.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yml b/k8s/helm/values.yml index c445ac8..cabb371 100644 --- a/k8s/helm/values.yml +++ b/k8s/helm/values.yml @@ -1,4 +1,4 @@ -replicaCount: 4 +replicaCount: 5 mongo: dbport : 27017 From 1ee9fc4e4004c02d5a31aa54f030194598b166ac Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 26 Apr 2023 12:47:47 +0530 Subject: [PATCH 017/124] Create testpipelinega.yml --- .github/workflows/testpipelinega.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/testpipelinega.yml diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml new file mode 100644 index 0000000..41d5baa --- /dev/null +++ b/.github/workflows/testpipelinega.yml @@ -0,0 +1,18 @@ +name: Register Artifact +on: workflow_dispatch +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Register Artifact Custom Action + uses: saub90/register-artifact-action@main + with: + devops-integration-user-name: ${{ secrets.SN_DEVOPS_INT_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_INT_PASSWORD }} + devops-security-token: ${{ secrets.SECRET_TEST_TOKENS1 }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + job-name: 'Register Artifact' + artifacts: '[{"name": "com:customactiondemo1234royBasic123","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' From cbd816a40e971f0543f5079072d232ff6447d389 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 4 May 2023 13:41:19 +0530 Subject: [PATCH 018/124] sn_devops_change-CHG0030001 sn_devops_change-CHG0030001 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 2df5ca9..5b93803 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 15 +replicaCount: 16 mongo: dbport : 27018 From 88a18e00af051780a400cefc9b1f5829fcf0c0bf Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 4 May 2023 13:48:07 +0530 Subject: [PATCH 019/124] sn_devops_change-CHG0030002 sn_devops_change-CHG0030002 --- k8s/helm/values.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yml b/k8s/helm/values.yml index cabb371..8fe5c61 100644 --- a/k8s/helm/values.yml +++ b/k8s/helm/values.yml @@ -1,4 +1,4 @@ -replicaCount: 5 +replicaCount: 6 mongo: dbport : 27017 From ca10be6ed996301e5ad2e04e091038e883ea6566 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 5 May 2023 17:00:35 +0530 Subject: [PATCH 020/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 41d5baa..cd61d88 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Register Artifact Custom Action - uses: saub90/register-artifact-action@main + uses: saub90/servicenow-devops-register-package@main with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_INT_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_INT_PASSWORD }} From 84d50ee936b9a42112f8b91d26954a0856b32662 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 10 May 2023 21:32:12 +0530 Subject: [PATCH 021/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index cd61d88..9fbab71 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Register Artifact Custom Action - uses: saub90/servicenow-devops-register-package@main + uses: saub90/servicenow-devops-register-package@1.34.2 with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_INT_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_INT_PASSWORD }} From a5fc8780c0714a11b860ed34f8cd5e449cb32802 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 10 May 2023 21:44:36 +0530 Subject: [PATCH 022/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 9fbab71..b86f14e 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Register Artifact Custom Action - uses: saub90/servicenow-devops-register-package@1.34.2 + uses: ServiceNow/servicenow-devops-register-package@1.34.2 with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_INT_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_INT_PASSWORD }} From 2dd2c3525ac02fe9ff84bea42ba6e84c0555f824 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 10 May 2023 21:46:49 +0530 Subject: [PATCH 023/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 50 ++++++++++++++++++---------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index b86f14e..7614f68 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -1,18 +1,34 @@ -name: Register Artifact -on: workflow_dispatch +name: CustomActionGetWorkflow +on: + workflow_dispatch: + jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Register Artifact Custom Action - uses: ServiceNow/servicenow-devops-register-package@1.34.2 - with: - devops-integration-user-name: ${{ secrets.SN_DEVOPS_INT_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_INT_PASSWORD }} - devops-security-token: ${{ secrets.SECRET_TEST_TOKENS1 }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - context-github: ${{ toJSON(github) }} - job-name: 'Register Artifact' - artifacts: '[{"name": "com:customactiondemo1234royBasic123","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + registerartifact: + name: Register Artifact + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Artifact + uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 + 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: 'Register Artifact' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + registerpackage: + name: Register Package + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Package + uses: ServiceNow/servicenow-devops-register-package@v1.34.2 + 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: 'Register Package' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + package-name: 'registerpackage.war' From 61cff96633fa2b34431358cd8164bb18fd28b696 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 00:54:47 +0530 Subject: [PATCH 024/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 7614f68..86d44a9 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -12,6 +12,7 @@ jobs: with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} @@ -26,6 +27,7 @@ jobs: with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} From a305119642b2a53743b77f1a9a10bc88a6890399 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:05:15 +0530 Subject: [PATCH 025/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 86d44a9..cf40a6a 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 + uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387551 with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Package - uses: ServiceNow/servicenow-devops-register-package@v1.34.2 + uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} From a2a5e8b38ec29e488e86504cef33b88eace9fbb0 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:10:43 +0530 Subject: [PATCH 026/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index cf40a6a..2150650 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387551 + uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} From f5fc8965b747feea44cb4ffd1f3cfb1fd397549b Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:26:46 +0530 Subject: [PATCH 027/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 2150650..b275cbc 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -10,8 +10,6 @@ jobs: - name: ServiceNow Register Artifact uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} @@ -25,8 +23,6 @@ jobs: - name: ServiceNow Register Package uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} From 385599c80978380497186409f8b371ca9c074c0e Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:37:24 +0530 Subject: [PATCH 028/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index b275cbc..e12bf23 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -10,7 +10,8 @@ jobs: - name: ServiceNow Register Artifact uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + 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) }} @@ -23,7 +24,8 @@ jobs: - name: ServiceNow Register Package uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + 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) }} From 9ae31e89655b97a229384b93004156d08eb11a2d Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:42:13 +0530 Subject: [PATCH 029/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index e12bf23..2150650 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -12,6 +12,7 @@ jobs: with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} @@ -26,6 +27,7 @@ jobs: with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} From 2e7bbb58d61e663432f6594c30216c1d07c349f9 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:45:19 +0530 Subject: [PATCH 030/124] Create undiscoveredpipeline.yml --- .github/workflows/undiscoveredpipeline.yml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/undiscoveredpipeline.yml diff --git a/.github/workflows/undiscoveredpipeline.yml b/.github/workflows/undiscoveredpipeline.yml new file mode 100644 index 0000000..2150650 --- /dev/null +++ b/.github/workflows/undiscoveredpipeline.yml @@ -0,0 +1,36 @@ +name: CustomActionGetWorkflow +on: + workflow_dispatch: + +jobs: + registerartifact: + name: Register Artifact + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Artifact + uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 + with: + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + job-name: 'Register Artifact' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + registerpackage: + name: Register Package + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Package + uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 + with: + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + job-name: 'Register Package' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + package-name: 'registerpackage.war' From 4303b521d840a8e12a9de4c2595d12c60e4785e8 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:46:59 +0530 Subject: [PATCH 031/124] Update undiscoveredpipeline.yml --- .github/workflows/undiscoveredpipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/undiscoveredpipeline.yml b/.github/workflows/undiscoveredpipeline.yml index 2150650..946a498 100644 --- a/.github/workflows/undiscoveredpipeline.yml +++ b/.github/workflows/undiscoveredpipeline.yml @@ -1,4 +1,4 @@ -name: CustomActionGetWorkflow +name: Undiscovered on: workflow_dispatch: From ab1f55eb365b4776ca2e296d14d0d353bff43c8f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 01:50:34 +0530 Subject: [PATCH 032/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 2150650..7614f68 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -8,11 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 + uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} @@ -23,11 +22,10 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Package - uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 + uses: ServiceNow/servicenow-devops-register-package@v1.34.2 with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} From bda8dc3e9e47ddcd7bb1b3d330647b0f09f3d543 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 02:10:46 +0530 Subject: [PATCH 033/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 7614f68..e7eb37f 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -10,8 +10,7 @@ jobs: - name: ServiceNow Register Artifact uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 with: - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} @@ -24,8 +23,7 @@ jobs: - name: ServiceNow Register Package uses: ServiceNow/servicenow-devops-register-package@v1.34.2 with: - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} From c8bdd6eac8d18bd0cb91b26470f96112c559c5ed Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 11 May 2023 02:11:32 +0530 Subject: [PATCH 034/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index e7eb37f..f226cfa 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 + uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} instance-url: ${{ secrets.SN_INSTANCE_URL }} @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Package - uses: ServiceNow/servicenow-devops-register-package@v1.34.2 + uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} instance-url: ${{ secrets.SN_INSTANCE_URL }} From 4d483afb1dbb560fdbb5112c19932fa58c703262 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 12 May 2023 15:27:52 +0530 Subject: [PATCH 035/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index f226cfa..81c6a8b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -10,7 +10,7 @@ jobs: - name: ServiceNow Register Artifact uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} @@ -23,10 +23,27 @@ jobs: - name: ServiceNow Register Package uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} job-name: 'Register Package' artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' package-name: 'registerpackage.war' + + sonarActionGetWorkflow: + name: Sonar Action + runs-on: ubuntu-latest + steps: + - name: ServiceNow DevOps Sonar Scan Results + uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 + with: + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + job-name: 'Build' + sonar-host-url: ${{ secrets.SONAR_URL }} + sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} From bcec4bbeac8e8fe8a13e0d84950830829bf811ba Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 12 May 2023 15:30:26 +0530 Subject: [PATCH 036/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 81c6a8b..a1778d1 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -38,8 +38,7 @@ jobs: - name: ServiceNow DevOps Sonar Scan Results uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 with: - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} From e697ecbb401952fcf6adb743050c11505269d9e1 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 12 May 2023 15:36:17 +0530 Subject: [PATCH 037/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 56 ++++++++++++++-------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index a1778d1..1dbe03c 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -3,33 +3,34 @@ on: workflow_dispatch: jobs: - registerartifact: - name: Register Artifact - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 - with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - context-github: ${{ toJSON(github) }} - job-name: 'Register Artifact' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - registerpackage: - name: Register Package - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Package - uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 - with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - context-github: ${{ toJSON(github) }} - job-name: 'Register Package' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - package-name: 'registerpackage.war' + +# registerartifact: +# name: Register Artifact +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Artifact +# uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# instance-url: ${{ secrets.SN_INSTANCE_URL }} +# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} +# context-github: ${{ toJSON(github) }} +# job-name: 'Register Artifact' +# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# registerpackage: +# name: Register Package +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Package +# uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# instance-url: ${{ secrets.SN_INSTANCE_URL }} +# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} +# context-github: ${{ toJSON(github) }} +# job-name: 'Register Package' +# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# package-name: 'registerpackage.war' sonarActionGetWorkflow: name: Sonar Action @@ -38,7 +39,6 @@ jobs: - name: ServiceNow DevOps Sonar Scan Results uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} From 6556ad542c38cfc6bc421798d96a4464b83985ac Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 12 May 2023 15:42:00 +0530 Subject: [PATCH 038/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 1dbe03c..5011056 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -40,6 +40,8 @@ jobs: uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + 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) }} From f55219fbd75a7852022c4b1575a4fee735fed612 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 12 May 2023 17:11:57 +0530 Subject: [PATCH 039/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 65 +++++++++++++++------------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 5011056..664b5d9 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -4,35 +4,38 @@ on: jobs: -# registerartifact: -# name: Register Artifact -# runs-on: ubuntu-latest -# steps: -# - name: ServiceNow Register Artifact -# uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 -# with: -# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} -# instance-url: ${{ secrets.SN_INSTANCE_URL }} -# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} -# context-github: ${{ toJSON(github) }} -# job-name: 'Register Artifact' -# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' -# registerpackage: -# name: Register Package -# runs-on: ubuntu-latest -# steps: -# - name: ServiceNow Register Package -# uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 -# with: -# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} -# instance-url: ${{ secrets.SN_INSTANCE_URL }} -# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} -# context-github: ${{ toJSON(github) }} -# job-name: 'Register Package' -# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' -# package-name: 'registerpackage.war' - - sonarActionGetWorkflow: + registerartifact: + name: Register Artifact + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Artifact + uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 + #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 + with: + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER123 }} + 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: 'Register Artifact' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + registerpackage: + name: Register Package + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Package + uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 + with: + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENsa }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + job-name: 'Register Package' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + package-name: 'registerpackage.war' + + sonarActionGetWorkflow: name: Sonar Action runs-on: ubuntu-latest steps: @@ -40,8 +43,8 @@ jobs: uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + #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) }} From 6e746beb38267a3d9659be2b0343d706a7d3d5aa Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 15 May 2023 15:40:05 +0530 Subject: [PATCH 040/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 60 ++++++++++++++-------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 664b5d9..2642d99 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -4,36 +4,36 @@ on: jobs: - registerartifact: - name: Register Artifact - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 - #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 - with: - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER123 }} - 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: 'Register Artifact' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - registerpackage: - name: Register Package - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Package - uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 - with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENsa }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - context-github: ${{ toJSON(github) }} - job-name: 'Register Package' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - package-name: 'registerpackage.war' +# registerartifact: +# name: Register Artifact +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Artifact +# uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 +# #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 +# with: +# #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER123 }} +# 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: 'Register Artifact' +# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# registerpackage: +# name: Register Package +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Package +# uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENsa }} +# instance-url: ${{ secrets.SN_INSTANCE_URL }} +# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} +# context-github: ${{ toJSON(github) }} +# job-name: 'Register Package' +# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# package-name: 'registerpackage.war' sonarActionGetWorkflow: name: Sonar Action From 1aad332573dc67bdd113e4b70f601b7fc7782433 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 15 May 2023 15:42:23 +0530 Subject: [PATCH 041/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 2642d99..ec3fdb3 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -51,3 +51,4 @@ jobs: job-name: 'Build' sonar-host-url: ${{ secrets.SONAR_URL }} sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} + sonar-token: ${{ secrets.SONAR_TOKEN }} From 4a668b73d3f6609dd6d002172754b421d1a085ac Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 15 May 2023 15:53:37 +0530 Subject: [PATCH 042/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index ec3fdb3..9ca2353 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -35,7 +35,22 @@ jobs: # artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' # package-name: 'registerpackage.war' - sonarActionGetWorkflow: +- name: Sonar Cloud Analysis + if: success() # always() failure() success() + run: > + mvn -B verify -DskipTests sonar:sonar + -Dsonar.projectKey=$SONAR_PROJECT_KEY + #-Dsonar.organization=$SONAR_ORG_KEY + -Dsonar.host.url=$SONAR_URL + -Dsonar.login=$SONAR_TOKEN + env: + GITHUB_TOKEN: ${{ secrets.GHP_TOKEN } + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} + SONAR_URL: ${{ secrets.SONAR_URL }} + #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} + + sonarActionGetWorkflow: name: Sonar Action runs-on: ubuntu-latest steps: From 04960aeb324b16946732d9f2fdace55bc736c91e Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 15 May 2023 15:56:21 +0530 Subject: [PATCH 043/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 9ca2353..7b6345c 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -34,6 +34,8 @@ jobs: # job-name: 'Register Package' # artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' # package-name: 'registerpackage.war' +- name: Maven Build + run: mvn clean install -DskipTests=true - name: Sonar Cloud Analysis if: success() # always() failure() success() @@ -49,7 +51,7 @@ jobs: SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} SONAR_URL: ${{ secrets.SONAR_URL }} #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} - + sonarActionGetWorkflow: name: Sonar Action runs-on: ubuntu-latest From ada9ee3a7a38eabda3d25036b01e8c5f9aa94f7b Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 15 May 2023 16:01:02 +0530 Subject: [PATCH 044/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 38 +++++++++++++++------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 7b6345c..0507eff 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -34,24 +34,28 @@ jobs: # job-name: 'Register Package' # artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' # package-name: 'registerpackage.war' -- name: Maven Build - run: mvn clean install -DskipTests=true + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Maven Build + run: mvn clean install -DskipTests=true -- name: Sonar Cloud Analysis - if: success() # always() failure() success() - run: > - mvn -B verify -DskipTests sonar:sonar - -Dsonar.projectKey=$SONAR_PROJECT_KEY - #-Dsonar.organization=$SONAR_ORG_KEY - -Dsonar.host.url=$SONAR_URL - -Dsonar.login=$SONAR_TOKEN - env: - GITHUB_TOKEN: ${{ secrets.GHP_TOKEN } - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} - SONAR_URL: ${{ secrets.SONAR_URL }} - #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} - + - name: Sonar Cloud Analysis + if: success() # always() failure() success() + run: > + mvn -B verify -DskipTests sonar:sonar + -Dsonar.projectKey=$SONAR_PROJECT_KEY + #-Dsonar.organization=$SONAR_ORG_KEY + -Dsonar.host.url=$SONAR_URL + -Dsonar.login=$SONAR_TOKEN + env: + GITHUB_TOKEN: ${{ secrets.GHP_TOKEN } + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} + SONAR_URL: ${{ secrets.SONAR_URL }} + #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} + sonarActionGetWorkflow: name: Sonar Action runs-on: ubuntu-latest From e0d9fad9eeef8c97ad6bca8604a421862bcc5e9f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 15 May 2023 16:02:07 +0530 Subject: [PATCH 045/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 0507eff..6f186ef 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -50,7 +50,7 @@ jobs: -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_TOKEN env: - GITHUB_TOKEN: ${{ secrets.GHP_TOKEN } + GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} SONAR_URL: ${{ secrets.SONAR_URL }} From a149afe8e4044d816e0fa2805bdb49dab766171c Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 16 May 2023 16:32:56 +0530 Subject: [PATCH 046/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 122 +++++++++++++-------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 6f186ef..cd71b6e 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -4,72 +4,72 @@ on: jobs: -# registerartifact: -# name: Register Artifact -# runs-on: ubuntu-latest -# steps: -# - name: ServiceNow Register Artifact -# uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 -# #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 -# with: -# #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} -# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER123 }} -# 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: 'Register Artifact' -# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' -# registerpackage: -# name: Register Package -# runs-on: ubuntu-latest -# steps: -# - name: ServiceNow Register Package -# uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 -# with: -# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENsa }} -# instance-url: ${{ secrets.SN_INSTANCE_URL }} -# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} -# context-github: ${{ toJSON(github) }} -# job-name: 'Register Package' -# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' -# package-name: 'registerpackage.war' - build: - name: Build + registerartifact: + name: Register Artifact runs-on: ubuntu-latest steps: - - name: Maven Build - run: mvn clean install -DskipTests=true - - - name: Sonar Cloud Analysis - if: success() # always() failure() success() - run: > - mvn -B verify -DskipTests sonar:sonar - -Dsonar.projectKey=$SONAR_PROJECT_KEY - #-Dsonar.organization=$SONAR_ORG_KEY - -Dsonar.host.url=$SONAR_URL - -Dsonar.login=$SONAR_TOKEN - env: - GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} - SONAR_URL: ${{ secrets.SONAR_URL }} - #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} - - sonarActionGetWorkflow: - name: Sonar Action + - name: ServiceNow Register Artifact + uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 + #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 + with: + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} + 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: 'Register Artifact' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + registerpackage: + name: Register Package runs-on: ubuntu-latest steps: - - name: ServiceNow DevOps Sonar Scan Results - uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 + - name: ServiceNow Register Package + uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - job-name: 'Build' - sonar-host-url: ${{ secrets.SONAR_URL }} - sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} - sonar-token: ${{ secrets.SONAR_TOKEN }} + job-name: 'Register Package' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + package-name: 'registerpackage.war' +# build: +# name: Build +# runs-on: ubuntu-latest +# steps: +# - name: Maven Build +# run: mvn clean install -DskipTests=true + +# - name: Sonar Cloud Analysis +# if: success() # always() failure() success() +# run: > +# mvn -B verify -DskipTests sonar:sonar +# -Dsonar.projectKey=$SONAR_PROJECT_KEY +# #-Dsonar.organization=$SONAR_ORG_KEY +# -Dsonar.host.url=$SONAR_URL +# -Dsonar.login=$SONAR_TOKEN +# env: +# GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} +# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} +# SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} +# SONAR_URL: ${{ secrets.SONAR_URL }} +# #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} + +# sonarActionGetWorkflow: +# name: Sonar Action +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow DevOps Sonar Scan Results +# uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# #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: 'Build' +# sonar-host-url: ${{ secrets.SONAR_URL }} +# sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} +# sonar-token: ${{ secrets.SONAR_TOKEN }} From dab6c9aefcb186500f647166818e8b2caceab843 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 16 May 2023 16:37:48 +0530 Subject: [PATCH 047/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index cd71b6e..dcc62ad 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -12,8 +12,8 @@ jobs: uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} From 0b29a0e58cc463853be3c785186943b64fe3b01c Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 16 May 2023 16:42:26 +0530 Subject: [PATCH 048/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index dcc62ad..9326013 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -27,7 +27,9 @@ jobs: - name: ServiceNow Register Package uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} + 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) }} From ccdc9ac01f5552ad6090f5a1d03ba146eac63901 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:03:45 +0530 Subject: [PATCH 049/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 80 +++++++++++++++++----------- 1 file changed, 48 insertions(+), 32 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 9326013..3e72d72 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -4,38 +4,38 @@ on: jobs: - registerartifact: - name: Register Artifact - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 - #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 - with: - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} - 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: 'Register Artifact' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - registerpackage: - name: Register Package - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Package - uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 - with: - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} - 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: 'Register Package' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - package-name: 'registerpackage.war' +# registerartifact: +# name: Register Artifact +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Artifact +# uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 +# #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 +# with: +# #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} +# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} +# 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: 'Register Artifact' +# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# registerpackage: +# name: Register Package +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Package +# uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 +# with: +# #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} +# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} +# 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: 'Register Package' +# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# package-name: 'registerpackage.war' # build: # name: Build # runs-on: ubuntu-latest @@ -75,3 +75,19 @@ jobs: # sonar-host-url: ${{ secrets.SONAR_URL }} # sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} # sonar-token: ${{ secrets.SONAR_TOKEN }} + getChangeStatus: + name: Build + runs-on: ubuntu-latest + steps: + - name: Get Change Custom Action + uses: roy-ca/getChangeAction@main + id: get + with: + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + change-details: '{"pipeline_name":"roy-ca/ChangeActionRepo/Get Change","stage_name":"Build","build_number":"4947331887"}' + - name: Output of GetChangeDetails + run: echo "The Status of Update Change Request Details => ${{ steps.get.outputs.change-request-number }}" + From 14a088860a62ef476306cdbb9657a5832633b4ee Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:16:11 +0530 Subject: [PATCH 050/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 3e72d72..915cb6e 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -76,7 +76,7 @@ jobs: # sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} # sonar-token: ${{ secrets.SONAR_TOKEN }} getChangeStatus: - name: Build + name: getChangeStatus runs-on: ubuntu-latest steps: - name: Get Change Custom Action @@ -87,7 +87,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - change-details: '{"pipeline_name":"roy-ca/ChangeActionRepo/Get Change","stage_name":"Build","build_number":"4947331887"}' + change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"4947331887"}' - name: Output of GetChangeDetails run: echo "The Status of Update Change Request Details => ${{ steps.get.outputs.change-request-number }}" From 8d0b0ec316bbea556db6e8abb9c12d6ac4f11ac5 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:17:59 +0530 Subject: [PATCH 051/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 915cb6e..d47f1a8 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -87,7 +87,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"4947331887"}' + change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' - name: Output of GetChangeDetails run: echo "The Status of Update Change Request Details => ${{ steps.get.outputs.change-request-number }}" From c582a5f3cba867d51c782fa56a025faefabce5e9 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:34:43 +0530 Subject: [PATCH 052/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index d47f1a8..ab43071 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -87,7 +87,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' + change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_number}}}' - name: Output of GetChangeDetails - run: echo "The Status of Update Change Request Details => ${{ steps.get.outputs.change-request-number }}" + run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" From 85d552c4043a3923918f927055389b171467c37c Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:37:37 +0530 Subject: [PATCH 053/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index ab43071..2a6eb49 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -75,6 +75,22 @@ jobs: # sonar-host-url: ${{ secrets.SONAR_URL }} # sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} # sonar-token: ${{ secrets.SONAR_TOKEN }} + CustomChange: + name: CustomChange + runs-on: ubuntu-latest + steps: + - name: Custom Change + uses: ServiceNow/servicenow-devops-change@v1.35.2 + 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: 'Build' + change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' + interval: '100' + timeout: '3600' getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest From 22d776febf2bc4431b7d15ebc042b8c3be27a69b Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:42:28 +0530 Subject: [PATCH 054/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 2a6eb49..4d30614 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -87,7 +87,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - job-name: 'Build' + job-name: 'CustomChange' change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' interval: '100' timeout: '3600' From ab1e3e2c70931fdc63edeec86204596c9b28a83d Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:43:56 +0530 Subject: [PATCH 055/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 4d30614..616b083 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -76,21 +76,21 @@ jobs: # sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} # sonar-token: ${{ secrets.SONAR_TOKEN }} CustomChange: - name: CustomChange - runs-on: ubuntu-latest - steps: - - name: Custom Change - uses: ServiceNow/servicenow-devops-change@v1.35.2 - 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: 'CustomChange' - change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' - interval: '100' - timeout: '3600' + name: CustomChange + runs-on: ubuntu-latest + steps: + - name: Custom Change + uses: ServiceNow/servicenow-devops-change@v1.35.2 + 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: 'CustomChange' + change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' + interval: '100' + timeout: '3600' getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest From 6a23caa6c79b0e8b080074d65851df88276df90f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:54:38 +0530 Subject: [PATCH 056/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 616b083..d9cf4e4 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -103,7 +103,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_number}}}' + change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.build_number}}}' - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" From c3d13a6b1a1a3ee4aef9498db7e8505c0e6cb406 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:58:05 +0530 Subject: [PATCH 057/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index d9cf4e4..f077a85 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -3,7 +3,12 @@ on: workflow_dispatch: jobs: - +- name: Output Run ID + run: echo ${{ github.run_id }} +- name: Output Run Number + run: echo ${{ github.run_number }} +- name: Output Run Attempt + run: echo ${{ github.run_attempt }} # registerartifact: # name: Register Artifact # runs-on: ubuntu-latest From a369f8e5c957a126327400586db4420055e755f7 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:58:41 +0530 Subject: [PATCH 058/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index f077a85..be7eba8 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -3,12 +3,12 @@ on: workflow_dispatch: jobs: -- name: Output Run ID - run: echo ${{ github.run_id }} -- name: Output Run Number - run: echo ${{ github.run_number }} -- name: Output Run Attempt - run: echo ${{ github.run_attempt }} + - name: Output Run ID + run: echo ${{ github.run_id }} + - name: Output Run Number + run: echo ${{ github.run_number }} + - name: Output Run Attempt + run: echo ${{ github.run_attempt }} # registerartifact: # name: Register Artifact # runs-on: ubuntu-latest From 2b2fe852fff95f451cf0154102b0c43608487342 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 14:59:40 +0530 Subject: [PATCH 059/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index be7eba8..1161e62 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -3,12 +3,7 @@ on: workflow_dispatch: jobs: - - name: Output Run ID - run: echo ${{ github.run_id }} - - name: Output Run Number - run: echo ${{ github.run_number }} - - name: Output Run Attempt - run: echo ${{ github.run_attempt }} + # registerartifact: # name: Register Artifact # runs-on: ubuntu-latest @@ -84,6 +79,12 @@ jobs: name: CustomChange runs-on: ubuntu-latest steps: + - name: Output Run ID + run: echo ${{ github.run_id }} + - name: Output Run Number + run: echo ${{ github.run_number }} + - name: Output Run Attempt + run: echo ${{ github.run_attempt }} - name: Custom Change uses: ServiceNow/servicenow-devops-change@v1.35.2 with: From bc2294a12834c2d53cfad1bda8395183b9c39ab1 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 15:01:27 +0530 Subject: [PATCH 060/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 1161e62..f792ca9 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -109,7 +109,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.build_number}}}' + change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" From 8dd49385c5bd93f283c59c0e930d05a227b15be9 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 17:03:45 +0530 Subject: [PATCH 061/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index f792ca9..c1b4e22 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -86,7 +86,7 @@ jobs: - name: Output Run Attempt run: echo ${{ github.run_attempt }} - name: Custom Change - uses: ServiceNow/servicenow-devops-change@v1.35.2 + 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 }} From b34201de4fc30979a02823f67e730ae0bfcef943 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:06:42 +0530 Subject: [PATCH 062/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 60 +++++++++++++++++----------- 1 file changed, 37 insertions(+), 23 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index c1b4e22..3e29b2b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -75,28 +75,28 @@ jobs: # sonar-host-url: ${{ secrets.SONAR_URL }} # sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} # sonar-token: ${{ secrets.SONAR_TOKEN }} - CustomChange: - name: CustomChange - runs-on: ubuntu-latest - steps: - - name: Output Run ID - run: echo ${{ github.run_id }} - - name: Output Run Number - run: echo ${{ github.run_number }} - - name: Output Run Attempt - run: echo ${{ github.run_attempt }} - - name: Custom 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: 'CustomChange' - change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' - interval: '100' - timeout: '3600' +# CustomChange: +# name: CustomChange +# runs-on: ubuntu-latest +# steps: +# - name: Output Run ID +# run: echo ${{ github.run_id }} +# - name: Output Run Number +# run: echo ${{ github.run_number }} +# - name: Output Run Attempt +# run: echo ${{ github.run_attempt }} +# - name: Custom 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: 'CustomChange' +# change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' +# interval: '100' +# timeout: '3600' getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest @@ -112,4 +112,18 @@ jobs: change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" - + UpdateChange: + name: UpdateChange + runs-on: ubuntu-latest + steps: + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + context-github: ${{ toJSON(github) }} + change-request-number: ${{ steps.get.outputs.change-request-number }} + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' From 14fc66ff15040543945c7a187aebfd7bcb9e588f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:27:43 +0530 Subject: [PATCH 063/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 3e29b2b..bceb5bf 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -115,6 +115,7 @@ jobs: UpdateChange: name: UpdateChange runs-on: ubuntu-latest + needs: getChangeStatus steps: - name: ServiceNow Update Change uses: saub90/update-change@master From 4452ec2f53a03bb3f7ba98ab9c62401ae83f3bac Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:30:16 +0530 Subject: [PATCH 064/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index bceb5bf..e7dec10 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -109,7 +109,8 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} - change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' + #change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' + change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" UpdateChange: From 3a945978dc6091267337d7f6b9160c075cc52011 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:42:04 +0530 Subject: [PATCH 065/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index e7dec10..232d526 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -100,6 +100,8 @@ jobs: getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest + outputs: + output1: ${{ steps.getChangeStatus.outputs.change-request-number }} steps: - name: Get Change Custom Action uses: roy-ca/getChangeAction@main @@ -111,13 +113,17 @@ jobs: context-github: ${{ toJSON(github) }} #change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' + run: echo ${{ steps.get.outputs.change-request-number }} >> "$GITHUB_OUTPUT" - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" + UpdateChange: name: UpdateChange runs-on: ubuntu-latest needs: getChangeStatus - steps: + steps: + - env: + OUTPUT1: ${{needs.getChangeStatus.outputs.output1}} - name: ServiceNow Update Change uses: saub90/update-change@master with: @@ -127,5 +133,5 @@ jobs: devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} - change-request-number: ${{ steps.get.outputs.change-request-number }} + change-request-number: ${{ OUTPUT1 }} change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' From c76a9007f87d19ce71f73aea20b56e5345b78e0b Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:46:58 +0530 Subject: [PATCH 066/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 232d526..72050c5 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -100,8 +100,8 @@ jobs: getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest - outputs: - output1: ${{ steps.getChangeStatus.outputs.change-request-number }} +# outputs: +# output1: ${{ steps.getChangeStatus.outputs.change-request-number }} steps: - name: Get Change Custom Action uses: roy-ca/getChangeAction@main @@ -121,9 +121,11 @@ jobs: name: UpdateChange runs-on: ubuntu-latest needs: getChangeStatus - steps: + steps: + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ steps.getChangeStatus.outputs.change-request-number }}" - env: - OUTPUT1: ${{needs.getChangeStatus.outputs.output1}} + OUTPUT1: ${{needs.getChangeStatus.outputs.change-request-number }} - name: ServiceNow Update Change uses: saub90/update-change@master with: From 364334a4f0e6adfae68a64b3fc4772c6943827de Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:48:15 +0530 Subject: [PATCH 067/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 72050c5..d97341d 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -118,22 +118,22 @@ jobs: run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" UpdateChange: - name: UpdateChange - runs-on: ubuntu-latest - needs: getChangeStatus - steps: - - name: Output of getChangeStatus - run: echo "Change Request Number => ${{ steps.getChangeStatus.outputs.change-request-number }}" - - env: - OUTPUT1: ${{needs.getChangeStatus.outputs.change-request-number }} - - name: ServiceNow Update Change - uses: saub90/update-change@master - with: - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - context-github: ${{ toJSON(github) }} - change-request-number: ${{ OUTPUT1 }} - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' + name: UpdateChange + runs-on: ubuntu-latest + needs: getChangeStatus + steps: + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ steps.getChangeStatus.outputs.change-request-number }}" + - env: + OUTPUT1: ${{needs.getChangeStatus.outputs.change-request-number }} + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + context-github: ${{ toJSON(github) }} + change-request-number: ${{ OUTPUT1 }} + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' From 0fc026488a1e7fa740631d9d9f793d950a6c4a2b Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:51:12 +0530 Subject: [PATCH 068/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index d97341d..446ae01 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -100,8 +100,8 @@ jobs: getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest -# outputs: -# output1: ${{ steps.getChangeStatus.outputs.change-request-number }} + outputs: + output1: ${{ steps.getChangeStatus.outputs.change-request-number }} steps: - name: Get Change Custom Action uses: roy-ca/getChangeAction@main @@ -126,6 +126,7 @@ jobs: run: echo "Change Request Number => ${{ steps.getChangeStatus.outputs.change-request-number }}" - env: OUTPUT1: ${{needs.getChangeStatus.outputs.change-request-number }} + run: echo "$OUTPUT1" - name: ServiceNow Update Change uses: saub90/update-change@master with: From b4dc832edcbe39999b283800f1e16225ccba09c6 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:52:36 +0530 Subject: [PATCH 069/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 446ae01..ce987c0 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -126,7 +126,7 @@ jobs: run: echo "Change Request Number => ${{ steps.getChangeStatus.outputs.change-request-number }}" - env: OUTPUT1: ${{needs.getChangeStatus.outputs.change-request-number }} - run: echo "$OUTPUT1" + run: echo "$OUTPUT1" - name: ServiceNow Update Change uses: saub90/update-change@master with: From 133595923bec6eb54b689c3456cdaf1f9c6a6ae4 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Wed, 17 May 2023 23:53:38 +0530 Subject: [PATCH 070/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index ce987c0..8149f13 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -136,5 +136,5 @@ jobs: devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} - change-request-number: ${{ OUTPUT1 }} + change-request-number: $OUTPUT1 change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' From ee23d8f960f3ce239cee6b3049043467e0fcebd8 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 09:29:08 +0530 Subject: [PATCH 071/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 65 ++++++++++++++-------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 8149f13..601da5b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -4,38 +4,39 @@ on: jobs: -# registerartifact: -# name: Register Artifact -# runs-on: ubuntu-latest -# steps: -# - name: ServiceNow Register Artifact -# uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 -# #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 -# with: -# #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} -# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} -# 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: 'Register Artifact' -# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' -# registerpackage: -# name: Register Package -# runs-on: ubuntu-latest -# steps: -# - name: ServiceNow Register Package -# uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 -# with: -# #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKENINVALID }} -# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER12 }} -# 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: 'Register Package' -# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' -# package-name: 'registerpackage.war' + registerartifact: + name: Register Artifact + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Artifact + uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 + #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 + with: + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + 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: 'Register Artifact' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + registerpackage: + name: Register Package + needs: registerartifact + runs-on: ubuntu-latest + steps: + - name: ServiceNow Register Package + uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 + with: + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + 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: 'Register Package' + artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + package-name: 'registerpackage.war' # build: # name: Build # runs-on: ubuntu-latest From e3972ec2da9380cec6504bad7bcf36945233a53d Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 09:30:04 +0530 Subject: [PATCH 072/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 601da5b..d7041c5 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - name: ServiceNow Register Artifact - uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 - #uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 + #uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 + uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} @@ -98,7 +98,7 @@ jobs: # change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' # interval: '100' # timeout: '3600' - getChangeStatus: + getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest outputs: @@ -118,7 +118,7 @@ jobs: - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" - UpdateChange: + UpdateChange: name: UpdateChange runs-on: ubuntu-latest needs: getChangeStatus From 632de36bc3fef6b018c0c31a84f1647a2e83736f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 09:36:14 +0530 Subject: [PATCH 073/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index d7041c5..f59476e 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -12,7 +12,7 @@ jobs: #uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} @@ -28,7 +28,7 @@ jobs: - name: ServiceNow Register Package uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} From 0a4b4605b8d7ac5a99b66c9ed07cfafcf05f925c Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 09:38:07 +0530 Subject: [PATCH 074/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index f59476e..c46b3f5 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -19,7 +19,7 @@ jobs: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} job-name: 'Register Artifact' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + artifacts: '[{"name": "com:customactiondemo1","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' registerpackage: name: Register Package needs: registerartifact From 989139682aacf7af576dda7f1b3b718e71d1de8a Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 09:40:52 +0530 Subject: [PATCH 075/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index c46b3f5..994c39f 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -22,7 +22,7 @@ jobs: artifacts: '[{"name": "com:customactiondemo1","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' registerpackage: name: Register Package - needs: registerartifact + #needs: registerartifact runs-on: ubuntu-latest steps: - name: ServiceNow Register Package From c30bd8bbb1efa7ccb0d0bc851dbae1025ab2d94e Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 09:44:04 +0530 Subject: [PATCH 076/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 994c39f..a372441 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -19,7 +19,7 @@ jobs: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} job-name: 'Register Artifact' - artifacts: '[{"name": "com:customactiondemo1","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' + artifacts: '[{"name": "com:customactiondemotest","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' registerpackage: name: Register Package #needs: registerartifact @@ -36,7 +36,7 @@ jobs: context-github: ${{ toJSON(github) }} job-name: 'Register Package' artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - package-name: 'registerpackage.war' + package-name: 'registerpackage1.war' # build: # name: Build # runs-on: ubuntu-latest From 10958a53765788c08b88b76a5a18661a5e2da5c0 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 12:46:31 +0530 Subject: [PATCH 077/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 82 ++++++++++++++-------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index a372441..db73f03 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -37,45 +37,45 @@ jobs: job-name: 'Register Package' artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' package-name: 'registerpackage1.war' -# build: -# name: Build -# runs-on: ubuntu-latest -# steps: -# - name: Maven Build -# run: mvn clean install -DskipTests=true + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Maven Build + run: mvn clean install -DskipTests=true -# - name: Sonar Cloud Analysis -# if: success() # always() failure() success() -# run: > -# mvn -B verify -DskipTests sonar:sonar -# -Dsonar.projectKey=$SONAR_PROJECT_KEY -# #-Dsonar.organization=$SONAR_ORG_KEY -# -Dsonar.host.url=$SONAR_URL -# -Dsonar.login=$SONAR_TOKEN -# env: -# GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} -# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} -# SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} -# SONAR_URL: ${{ secrets.SONAR_URL }} -# #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} + - name: Sonar Cloud Analysis + if: success() # always() failure() success() + run: > + mvn -B verify -DskipTests sonar:sonar + -Dsonar.projectKey=$SONAR_PROJECT_KEY + #-Dsonar.organization=$SONAR_ORG_KEY + -Dsonar.host.url=$SONAR_URL + -Dsonar.login=$SONAR_TOKEN + env: + GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} + SONAR_URL: ${{ secrets.SONAR_URL }} + #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} -# sonarActionGetWorkflow: -# name: Sonar Action -# runs-on: ubuntu-latest -# steps: -# - name: ServiceNow DevOps Sonar Scan Results -# uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 -# with: -# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} -# #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: 'Build' -# sonar-host-url: ${{ secrets.SONAR_URL }} -# sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} -# sonar-token: ${{ secrets.SONAR_TOKEN }} + sonarActionGetWorkflow: + name: Sonar Action + runs-on: ubuntu-latest + steps: + - name: ServiceNow DevOps Sonar Scan Results + uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 + with: + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + #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: 'Build' + sonar-host-url: ${{ secrets.SONAR_URL }} + sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} + sonar-token: ${{ secrets.SONAR_TOKEN }} # CustomChange: # name: CustomChange # runs-on: ubuntu-latest @@ -102,11 +102,11 @@ jobs: name: getChangeStatus runs-on: ubuntu-latest outputs: - output1: ${{ steps.getChangeStatus.outputs.change-request-number }} + output1: ${{steps.getChange.outputs.change-request-number }} steps: - name: Get Change Custom Action uses: roy-ca/getChangeAction@main - id: get + id: getChange with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} @@ -114,9 +114,9 @@ jobs: context-github: ${{ toJSON(github) }} #change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' - run: echo ${{ steps.get.outputs.change-request-number }} >> "$GITHUB_OUTPUT" + run: echo ${{ steps.getChange.outputs.change-request-number }} >> "$GITHUB_OUTPUT" - name: Output of GetChangeDetails - run: echo "The Status of Get Change Request Details => ${{ steps.get.outputs.change-request-number }}" + run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" UpdateChange: name: UpdateChange From 0a147c1764fc7739bddf4873c542d8fa9f8246d3 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 12:48:46 +0530 Subject: [PATCH 078/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index db73f03..cbb2ca0 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -124,7 +124,7 @@ jobs: needs: getChangeStatus steps: - name: Output of getChangeStatus - run: echo "Change Request Number => ${{ steps.getChangeStatus.outputs.change-request-number }}" + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.change-request-number }}" - env: OUTPUT1: ${{needs.getChangeStatus.outputs.change-request-number }} run: echo "$OUTPUT1" From 39fb16c8e7d52da75b835f52df5f35000e3e01ac Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 12:54:40 +0530 Subject: [PATCH 079/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index cbb2ca0..ebb072b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -124,10 +124,12 @@ jobs: needs: getChangeStatus steps: - name: Output of getChangeStatus - run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.change-request-number }}" + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - env: - OUTPUT1: ${{needs.getChangeStatus.outputs.change-request-number }} - run: echo "$OUTPUT1" + OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} + #run: echo "$OUTPUT1" + run: echo "$GITHUB_OUTPUT" + - run: echo change-request-number [${{needs.getChangeStatus.outputs.output1}}] - name: ServiceNow Update Change uses: saub90/update-change@master with: From ea68fd86bd17fb03444c98218e12357c321ac6a4 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 12:56:16 +0530 Subject: [PATCH 080/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index ebb072b..6639020 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -127,9 +127,6 @@ jobs: run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - env: OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} - #run: echo "$OUTPUT1" - run: echo "$GITHUB_OUTPUT" - - run: echo change-request-number [${{needs.getChangeStatus.outputs.output1}}] - name: ServiceNow Update Change uses: saub90/update-change@master with: @@ -139,5 +136,5 @@ jobs: devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} - change-request-number: $OUTPUT1 + change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' From c7ae4f7860470d47ba7b0b876cc3b4adead2274f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 12:59:29 +0530 Subject: [PATCH 081/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 6639020..22a368b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -123,18 +123,18 @@ jobs: runs-on: ubuntu-latest needs: getChangeStatus steps: - - name: Output of getChangeStatus - run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - - env: - OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} - - name: ServiceNow Update Change - uses: saub90/update-change@master - with: - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - context-github: ${{ toJSON(github) }} - change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" + - env: + OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + context-github: ${{ toJSON(github) }} + change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' From 647c9aa6a534da27aaea5198e3fd7d09365cd6a0 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 15:17:58 +0530 Subject: [PATCH 082/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 74 ++++++++++++++-------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 22a368b..2cdc126 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -37,45 +37,45 @@ jobs: job-name: 'Register Package' artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' package-name: 'registerpackage1.war' - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Maven Build - run: mvn clean install -DskipTests=true +# build: +# name: Build +# runs-on: ubuntu-latest +# steps: +# - name: Maven Build +# run: mvn clean install -DskipTests=true - - name: Sonar Cloud Analysis - if: success() # always() failure() success() - run: > - mvn -B verify -DskipTests sonar:sonar - -Dsonar.projectKey=$SONAR_PROJECT_KEY - #-Dsonar.organization=$SONAR_ORG_KEY - -Dsonar.host.url=$SONAR_URL - -Dsonar.login=$SONAR_TOKEN - env: - GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} - SONAR_URL: ${{ secrets.SONAR_URL }} - #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} +# - name: Sonar Cloud Analysis +# if: success() # always() failure() success() +# run: > +# mvn -B verify -DskipTests sonar:sonar +# -Dsonar.projectKey=$SONAR_PROJECT_KEY +# #-Dsonar.organization=$SONAR_ORG_KEY +# -Dsonar.host.url=$SONAR_URL +# -Dsonar.login=$SONAR_TOKEN +# env: +# GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} +# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} +# SONAR_PROJECT_KEY: ${{ secrets.SONAR_PROJECT_KEY }} +# SONAR_URL: ${{ secrets.SONAR_URL }} +# #SONAR_ORG_KEY: ${{ secrets.SONAR_ORG_KEY }} - sonarActionGetWorkflow: - name: Sonar Action - runs-on: ubuntu-latest - steps: - - name: ServiceNow DevOps Sonar Scan Results - uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 - with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - #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: 'Build' - sonar-host-url: ${{ secrets.SONAR_URL }} - sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} - sonar-token: ${{ secrets.SONAR_TOKEN }} +# sonarActionGetWorkflow: +# name: Sonar Action +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow DevOps Sonar Scan Results +# uses: ServiceNow/servicenow-devops-sonar@scratch_STRY55387793 +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# #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: 'Build' +# sonar-host-url: ${{ secrets.SONAR_URL }} +# sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} +# sonar-token: ${{ secrets.SONAR_TOKEN }} # CustomChange: # name: CustomChange # runs-on: ubuntu-latest From 2362bb1210678f48632047a52b4edf5431ccd0a1 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:34:23 +0530 Subject: [PATCH 083/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 2cdc126..b438a6b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -2,8 +2,7 @@ name: CustomActionGetWorkflow on: workflow_dispatch: -jobs: - +jobs: registerartifact: name: Register Artifact runs-on: ubuntu-latest @@ -99,11 +98,11 @@ jobs: # interval: '100' # timeout: '3600' getChangeStatus: - name: getChangeStatus - runs-on: ubuntu-latest - outputs: - output1: ${{steps.getChange.outputs.change-request-number }} - steps: + name: getChangeStatus + runs-on: ubuntu-latest + outputs: + output1: ${{steps.getChange.outputs.change-request-number }} + steps: - name: Get Change Custom Action uses: roy-ca/getChangeAction@main id: getChange @@ -119,10 +118,10 @@ jobs: run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" UpdateChange: - name: UpdateChange - runs-on: ubuntu-latest - needs: getChangeStatus - steps: + name: UpdateChange + runs-on: ubuntu-latest + needs: getChangeStatus + steps: - name: Output of getChangeStatus run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - env: From b6cbc20931a27f7c26f436bd36afd49b3fe70583 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:35:41 +0530 Subject: [PATCH 084/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index b438a6b..0acea42 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -103,10 +103,10 @@ jobs: outputs: output1: ${{steps.getChange.outputs.change-request-number }} steps: - - name: Get Change Custom Action - uses: roy-ca/getChangeAction@main - id: getChange - with: + - name: Get Change Custom Action + uses: roy-ca/getChangeAction@main + id: getChange + with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} @@ -114,21 +114,21 @@ jobs: #change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' run: echo ${{ steps.getChange.outputs.change-request-number }} >> "$GITHUB_OUTPUT" - - name: Output of GetChangeDetails - run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" + - name: Output of GetChangeDetails + run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" UpdateChange: name: UpdateChange runs-on: ubuntu-latest needs: getChangeStatus steps: - - name: Output of getChangeStatus - run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - - env: + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" + - env: OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} - - name: ServiceNow Update Change - uses: saub90/update-change@master - with: + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} From 17ac308deba7c7dc5b111222cff64569aa0d8b89 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:36:11 +0530 Subject: [PATCH 085/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 78 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 0acea42..d6d602c 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -97,43 +97,43 @@ jobs: # change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' # interval: '100' # timeout: '3600' - getChangeStatus: - name: getChangeStatus - runs-on: ubuntu-latest - outputs: - output1: ${{steps.getChange.outputs.change-request-number }} - steps: - - name: Get Change Custom Action - uses: roy-ca/getChangeAction@main - id: getChange - with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - context-github: ${{ toJSON(github) }} - #change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' - change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' - run: echo ${{ steps.getChange.outputs.change-request-number }} >> "$GITHUB_OUTPUT" - - name: Output of GetChangeDetails - run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" +# getChangeStatus: +# name: getChangeStatus +# runs-on: ubuntu-latest +# outputs: +# output1: ${{steps.getChange.outputs.change-request-number }} +# steps: +# - name: Get Change Custom Action +# uses: roy-ca/getChangeAction@main +# id: getChange +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# instance-url: ${{ secrets.SN_INSTANCE_URL }} +# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} +# context-github: ${{ toJSON(github) }} +# #change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' +# change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' +# run: echo ${{ steps.getChange.outputs.change-request-number }} >> "$GITHUB_OUTPUT" +# - name: Output of GetChangeDetails +# run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" - UpdateChange: - name: UpdateChange - runs-on: ubuntu-latest - needs: getChangeStatus - steps: - - name: Output of getChangeStatus - run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - - env: - OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} - - name: ServiceNow Update Change - uses: saub90/update-change@master - with: - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - context-github: ${{ toJSON(github) }} - change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' +# UpdateChange: +# name: UpdateChange +# runs-on: ubuntu-latest +# needs: getChangeStatus +# steps: +# - name: Output of getChangeStatus +# run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" +# - env: +# OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} +# - name: ServiceNow Update Change +# uses: saub90/update-change@master +# with: +# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} +# devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} +# instance-url: ${{ secrets.SN_INSTANCE_URL }} +# context-github: ${{ toJSON(github) }} +# change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} +# change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' From 8582f65c141878aca3f3a52f9c3fb8e71d2ec7d9 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:37:14 +0530 Subject: [PATCH 086/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index d6d602c..5b0c85d 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -36,6 +36,48 @@ jobs: job-name: 'Register Package' artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' package-name: 'registerpackage1.war' + + getChangeStatus: + name: getChangeStatus + runs-on: ubuntu-latest + outputs: + output1: ${{steps.getChange.outputs.change-request-number }} + steps: + - name: Get Change Custom Action + uses: roy-ca/getChangeAction@main + id: getChange + with: + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + context-github: ${{ toJSON(github) }} + #change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":${{github.run_id}}}' + change-details: '{"pipeline_name":"saub90/web-api/CustomActionGetWorkflow","stage_name":"getChangeStatus","build_number":"5001220052"}' + run: echo ${{ steps.getChange.outputs.change-request-number }} >> "$GITHUB_OUTPUT" + - name: Output of GetChangeDetails + run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" + + UpdateChange: + name: UpdateChange + runs-on: ubuntu-latest + needs: getChangeStatus + steps: + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" + - env: + OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + context-github: ${{ toJSON(github) }} + change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' + # build: # name: Build # runs-on: ubuntu-latest From 07caa07aebf638aa47dc377952f0721b6465fad8 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:38:06 +0530 Subject: [PATCH 087/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 5b0c85d..80806f6 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -57,26 +57,26 @@ jobs: - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" - UpdateChange: - name: UpdateChange - runs-on: ubuntu-latest - needs: getChangeStatus - steps: - - name: Output of getChangeStatus - run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - - env: - OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} - - name: ServiceNow Update Change - uses: saub90/update-change@master - with: - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - instance-url: ${{ secrets.SN_INSTANCE_URL }} - context-github: ${{ toJSON(github) }} - change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' +# UpdateChange: +# name: UpdateChange +# runs-on: ubuntu-latest +# needs: getChangeStatus +# steps: +# - name: Output of getChangeStatus +# run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" +# - env: +# OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} +# - name: ServiceNow Update Change +# uses: saub90/update-change@master +# with: +# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} +# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} +# devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} +# instance-url: ${{ secrets.SN_INSTANCE_URL }} +# context-github: ${{ toJSON(github) }} +# change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} +# change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' # build: # name: Build From 5693c55686c4c239d56401386c0a21d3e138af89 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:39:21 +0530 Subject: [PATCH 088/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 80806f6..59036bc 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -57,26 +57,26 @@ jobs: - name: Output of GetChangeDetails run: echo "The Status of Get Change Request Details => ${{ steps.getChange.outputs.change-request-number }}" -# UpdateChange: -# name: UpdateChange -# runs-on: ubuntu-latest -# needs: getChangeStatus -# steps: -# - name: Output of getChangeStatus -# run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" -# - env: -# OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} -# - name: ServiceNow Update Change -# uses: saub90/update-change@master -# with: -# tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} -# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} -# devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} -# devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} -# instance-url: ${{ secrets.SN_INSTANCE_URL }} -# context-github: ${{ toJSON(github) }} -# change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} -# change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' + UpdateChange: + name: UpdateChange + runs-on: ubuntu-latest + needs: getChangeStatus + steps: + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" + - env: + OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + context-github: ${{ toJSON(github) }} + change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' # build: # name: Build From dec62034fa1cd9e81127b77ed828cc73f964b682 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:40:25 +0530 Subject: [PATCH 089/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 59036bc..3cb3e83 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -66,6 +66,7 @@ jobs: run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - env: OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} + run: echo $OUTPUT1 - name: ServiceNow Update Change uses: saub90/update-change@master with: From 4178e5482a9db348b4ed15082bfcf547bc6d64f2 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:44:23 +0530 Subject: [PATCH 090/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 3cb3e83..7d5f73b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -66,7 +66,7 @@ jobs: run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" - env: OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} - run: echo $OUTPUT1 + run: echo $OUTPUT1 - name: ServiceNow Update Change uses: saub90/update-change@master with: From 7bb64404af3f6e8dfc9d5555f0cdde2dafae5e8e Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 16:46:07 +0530 Subject: [PATCH 091/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 7d5f73b..a633fbc 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -76,7 +76,8 @@ jobs: devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} - change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} + #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} + change-request-number : "CHG00001" change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' # build: From 2a8722428632ea475c1ebf01c8dbf3149b667419 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 17:06:15 +0530 Subject: [PATCH 092/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index a633fbc..a25e531 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -11,7 +11,7 @@ jobs: #uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} @@ -27,7 +27,7 @@ jobs: - name: ServiceNow Register Package uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} @@ -47,7 +47,7 @@ jobs: uses: roy-ca/getChangeAction@main id: getChange with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} @@ -71,7 +71,7 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} From 1bfc9814544d3f7db48688023c258fb9b6673ef4 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 17:09:14 +0530 Subject: [PATCH 093/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index a25e531..4737239 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -28,8 +28,8 @@ jobs: uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + #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) }} @@ -48,6 +48,8 @@ jobs: id: getChange with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + 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) }} @@ -72,8 +74,8 @@ jobs: with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} From 3f00c28b9c82b6f08aa1854a74b5dfb215eb12f6 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 18 May 2023 18:25:32 +0530 Subject: [PATCH 094/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 4737239..0a212b5 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -47,7 +47,7 @@ jobs: uses: roy-ca/getChangeAction@main id: getChange with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} @@ -73,9 +73,9 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} From 0c2364633f89f0f25b88aa49c5ecbd38912c0dd6 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 19 May 2023 16:18:49 +0530 Subject: [PATCH 095/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 74 ++++++++++++++-------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 0a212b5..a4e16f9 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -3,39 +3,39 @@ on: workflow_dispatch: jobs: - registerartifact: - name: Register Artifact - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Artifact - #uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 - uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 - with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - 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: 'Register Artifact' - artifacts: '[{"name": "com:customactiondemotest","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - registerpackage: - name: Register Package - #needs: registerartifact - runs-on: ubuntu-latest - steps: - - name: ServiceNow Register Package - uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 - with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - #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: 'Register Package' - artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' - package-name: 'registerpackage1.war' +# registerartifact: +# name: Register Artifact +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Artifact +# #uses: ServiceNow/servicenow-devops-register-artifact@v1.34.2 +# uses: ServiceNow/servicenow-devops-register-artifact@scratch_STRY55387369 +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} +# 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: 'Register Artifact' +# artifacts: '[{"name": "com:customactiondemotest","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# registerpackage: +# name: Register Package +# #needs: registerartifact +# runs-on: ubuntu-latest +# steps: +# - name: ServiceNow Register Package +# uses: ServiceNow/servicenow-devops-register-package@scratch_STRY55387551 +# with: +# devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} +# #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: 'Register Package' +# artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' +# package-name: 'registerpackage1.war' getChangeStatus: name: getChangeStatus @@ -73,13 +73,13 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG00001" + change-request-number : "CHG0030002" change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' # build: From 6a30fbbe1dace2c93a626dcf2f0ac0dada71a971 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 19 May 2023 16:21:35 +0530 Subject: [PATCH 096/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index a4e16f9..775bdff 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -73,7 +73,7 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} From d69b8e32a24994fb960eed9580940bb3cabe3e8e Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 19 May 2023 16:26:02 +0530 Subject: [PATCH 097/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 775bdff..00ab53b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -81,6 +81,28 @@ jobs: #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} change-request-number : "CHG0030002" change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' + UpdateChangebasicauth: + name: UpdateChangeBasicAuth + runs-on: ubuntu-latest + needs: getChangeStatus + steps: + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" + - env: + OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} + run: echo $OUTPUT1 + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + context-github: ${{ toJSON(github) }} + #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} + change-request-number : "CHG0030003" + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' # build: # name: Build From 009b3fb0d53dcaf96088f182688ad136231077f3 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 19 May 2023 17:46:22 +0530 Subject: [PATCH 098/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 00ab53b..d744635 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -79,7 +79,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG0030002" + change-request-number : "CHG0030004" change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' UpdateChangebasicauth: name: UpdateChangeBasicAuth From 0d08df666ce15c80e7a829634ad195e4c95f8d90 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Fri, 19 May 2023 18:38:59 +0530 Subject: [PATCH 099/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index d744635..032879d 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -79,7 +79,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG0030004" + change-request-number : "CHG0030006" change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' UpdateChangebasicauth: name: UpdateChangeBasicAuth @@ -101,7 +101,7 @@ jobs: instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG0030003" + change-request-number : "CHG0030006" change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' # build: From 50f9ac99e2cf6cb1bab40cce7e3f68552d1cd4c1 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 22 May 2023 17:11:57 +0530 Subject: [PATCH 100/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 44 ++++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 032879d..52e8ca7 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -143,28 +143,28 @@ jobs: # sonar-host-url: ${{ secrets.SONAR_URL }} # sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} # sonar-token: ${{ secrets.SONAR_TOKEN }} -# CustomChange: -# name: CustomChange -# runs-on: ubuntu-latest -# steps: -# - name: Output Run ID -# run: echo ${{ github.run_id }} -# - name: Output Run Number -# run: echo ${{ github.run_number }} -# - name: Output Run Attempt -# run: echo ${{ github.run_attempt }} -# - name: Custom 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: 'CustomChange' -# change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' -# interval: '100' -# timeout: '3600' + CustomChange: + name: CustomChange + runs-on: ubuntu-latest + steps: + - name: Output Run ID + run: echo ${{ github.run_id }} + - name: Output Run Number + run: echo ${{ github.run_number }} + - name: Output Run Attempt + run: echo ${{ github.run_attempt }} + - name: Custom 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: 'CustomChange' + change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' + interval: '100' + timeout: '3600' # getChangeStatus: # name: getChangeStatus # runs-on: ubuntu-latest From 9ce33d4e5114b2826ee2ee0116fcce0d78fff4d1 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 23 May 2023 01:39:37 +0530 Subject: [PATCH 101/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 81 +++++++++++++++++----------- 1 file changed, 50 insertions(+), 31 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 52e8ca7..9a9e3da 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -73,14 +73,14 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG0030006" - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' + change-request-number : "CHG0030015" + change-request-details: '{"close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' UpdateChangebasicauth: name: UpdateChangeBasicAuth runs-on: ubuntu-latest @@ -95,15 +95,34 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + instance-url: ${{ secrets.SN_INSTANCE_URL }} + context-github: ${{ toJSON(github) }} + #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} + change-request-number : "CHG0030015" + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' + + UpdateChangebasicauthInvalid: + name: UpdateChangebasicauthInvalid + runs-on: ubuntu-latest + needs: getChangeStatus + steps: + - name: Output of getChangeStatus + run: echo "Change Request Number => ${{ needs.getChangeStatus.outputs.output1 }}" + - env: + OUTPUT1: ${{needs.getChangeStatus.outputs.output1 }} + run: echo $OUTPUT1 + - name: ServiceNow Update Change + uses: saub90/update-change@master + with: + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG0030006" - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful"}' - + change-request-number : "CHG0030014" + change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' + # build: # name: Build # runs-on: ubuntu-latest @@ -143,28 +162,28 @@ jobs: # sonar-host-url: ${{ secrets.SONAR_URL }} # sonar-project-key: ${{ secrets.SONAR_PROJECT_KEY }} # sonar-token: ${{ secrets.SONAR_TOKEN }} - CustomChange: - name: CustomChange - runs-on: ubuntu-latest - steps: - - name: Output Run ID - run: echo ${{ github.run_id }} - - name: Output Run Number - run: echo ${{ github.run_number }} - - name: Output Run Attempt - run: echo ${{ github.run_attempt }} - - name: Custom 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: 'CustomChange' - change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' - interval: '100' - timeout: '3600' +# CustomChange: +# name: CustomChange +# runs-on: ubuntu-latest +# steps: +# - name: Output Run ID +# run: echo ${{ github.run_id }} +# - name: Output Run Number +# run: echo ${{ github.run_number }} +# - name: Output Run Attempt +# run: echo ${{ github.run_attempt }} +# - name: Custom 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: 'CustomChange' +# change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' +# interval: '100' +# timeout: '3600' # getChangeStatus: # name: getChangeStatus # runs-on: ubuntu-latest From dab4efa100d642c45448f354a038e4243e139985 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 23 May 2023 01:54:05 +0530 Subject: [PATCH 102/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 9a9e3da..9420798 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -74,7 +74,7 @@ jobs: with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER1 }} #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} From be706ef38c930d92f7bfe3de190953f82a44771a Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 23 May 2023 02:00:57 +0530 Subject: [PATCH 103/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 9420798..6fa6bbe 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -75,7 +75,7 @@ jobs: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER1 }} - #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} @@ -100,7 +100,7 @@ jobs: context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} change-request-number : "CHG0030015" - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' + change-request-details: '{"close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' UpdateChangebasicauthInvalid: name: UpdateChangebasicauthInvalid @@ -121,7 +121,7 @@ jobs: context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} change-request-number : "CHG0030014" - change-request-details: '{"state":"3","close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' + change-request-details: '{"close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' # build: # name: Build From 4b437ea871f6a6a6ce7e30b507a1f079d8988bfc Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 23 May 2023 02:14:14 +0530 Subject: [PATCH 104/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 6fa6bbe..254b1b3 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -73,13 +73,13 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER1 }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG0030015" + change-request-number : "CHG0030016" change-request-details: '{"close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' UpdateChangebasicauth: name: UpdateChangeBasicAuth From aa95b76c9c68ffde57c020809262a34c991aef52 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Tue, 23 May 2023 02:16:39 +0530 Subject: [PATCH 105/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 254b1b3..2549875 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -74,8 +74,8 @@ jobs: with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} @@ -95,11 +95,13 @@ jobs: uses: saub90/update-change@master with: tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} #change-request-number: ${{ needs.getChangeStatus.outputs.output1 }} - change-request-number : "CHG0030015" + change-request-number : "CHG0030016" change-request-details: '{"close_code":"successful_issues","close_notes": "Test results unsuccessful","state":"3"}' UpdateChangebasicauthInvalid: From 1af3def943b97c5f90929263548b92792e7fdaf4 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 18:36:36 +0530 Subject: [PATCH 106/124] Update values.yaml --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 5b93803..2b0b72e 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 16 +replicaCount: 17 mongo: dbport : 27018 From 484881bbea22fd6a9876d7d7d55a6e2cde62602e Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 18:52:42 +0530 Subject: [PATCH 107/124] Update values.yaml --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 2b0b72e..8e63d43 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 17 +replicaCount: 18 mongo: dbport : 27018 From 947d5909fbccdc11cd4e2a248dc4bbc741a91be2 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:47:01 +0530 Subject: [PATCH 108/124] Update values.yaml --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 8e63d43..353a451 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 18 +replicaCount: 19 mongo: dbport : 27018 From 969973c42ffcdd4a528577ffb13ff5584cd17e7f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:55:01 +0530 Subject: [PATCH 109/124] sn_devops_change-CHG0030087 sn_devops_change-CHG0030087 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 353a451..3a21a2e 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 19 +replicaCount: 20 mongo: dbport : 27018 From 04325128c6634d2faabd301d78d86457cbc21417 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 19:58:20 +0530 Subject: [PATCH 110/124] sn_devops_change-CHG0030087 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 3a21a2e..53d7072 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 20 +replicaCount: 21 mongo: dbport : 27018 From 972ac5f3cedb9d1080146ceada25a00840d7e9ff Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:00:23 +0530 Subject: [PATCH 111/124] Update values.yaml --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 53d7072..73f763b 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 21 +replicaCount: 22 mongo: dbport : 27018 From 9516edb909bb76ccc886bd6d4bae7db70b1e26ff Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:00:38 +0530 Subject: [PATCH 112/124] sn_devops_change-CHG0030087 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 73f763b..8a1b875 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 22 +replicaCount: 23 mongo: dbport : 27018 From 0426a9ca80ff3df6b78143d3cdfad6ecadf2423d Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:02:16 +0530 Subject: [PATCH 113/124] sn_devops_change-CHG0030087 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 8a1b875..69f6b9d 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 23 +replicaCount: 24 mongo: dbport : 27018 From e6b1d1863c8c11e5bcf1e28e2135897f01b1a7b5 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:05:25 +0530 Subject: [PATCH 114/124] sn_devops_change-CHG0030088 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 69f6b9d..4e4211e 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 24 +replicaCount: 25 mongo: dbport : 27018 From 9bfb17a8c41a9f470fc3611c28f8cf666c894508 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:10:28 +0530 Subject: [PATCH 115/124] sn_devops_change-CHG0030089 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 4e4211e..10201ab 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 25 +replicaCount: 26 mongo: dbport : 27018 From 1c70ec7b9ca327120071d3aef6b6410031fa974f Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:16:29 +0530 Subject: [PATCH 116/124] sn_devops_change-CHG0030090 --- k8s/helm/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/helm/values.yaml b/k8s/helm/values.yaml index 10201ab..8eba545 100644 --- a/k8s/helm/values.yaml +++ b/k8s/helm/values.yaml @@ -1,4 +1,4 @@ -replicaCount: 26 +replicaCount: 27 mongo: dbport : 27018 From 815eca50f5ad521c8184162e561673cec3aa85fe Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 14:28:50 +0530 Subject: [PATCH 117/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 2549875..7be7566 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -36,7 +36,28 @@ jobs: # job-name: 'Register Package' # artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]' # package-name: 'registerpackage1.war' - + CustomChange: + name: CustomChange + runs-on: ubuntu-latest + steps: + - name: Output Run ID + run: echo ${{ github.run_id }} + - name: Output Run Number + run: echo ${{ github.run_number }} + - name: Output Run Attempt + run: echo ${{ github.run_attempt }} + - name: Custom 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: 'CustomChange' + change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' + interval: '100' + timeout: '3600' getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest From 7fca99726eb6d412493c7eecc64ce30a4c044d52 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 14:29:52 +0530 Subject: [PATCH 118/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 7be7566..22d078b 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -47,7 +47,7 @@ jobs: - name: Output Run Attempt run: echo ${{ github.run_attempt }} - name: Custom Change - uses: ServiceNow/servicenow-devops-change@v1.38.0 + uses: ServiceNow/servicenow-devops-change@vdev with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} From cd8d00e451730326a6aab7add3be747e772e5d0e Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 14:31:14 +0530 Subject: [PATCH 119/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 22d078b..20c3931 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -47,7 +47,7 @@ jobs: - name: Output Run Attempt run: echo ${{ github.run_attempt }} - name: Custom Change - uses: ServiceNow/servicenow-devops-change@vdev + uses: ServiceNow/servicenow-devops-change@dev with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} @@ -68,7 +68,7 @@ jobs: uses: roy-ca/getChangeAction@main id: getChange with: - #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN1 }} + #devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} From be56d92d406973d73889b9989bb32732c54cdd8a Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:18:47 +0530 Subject: [PATCH 120/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 20c3931..37fed75 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -49,8 +49,9 @@ jobs: - name: Custom Change uses: ServiceNow/servicenow-devops-change@dev with: - devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} From 798988f4dce0d3b5cf2903f105ac9b0b2215d452 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:19:30 +0530 Subject: [PATCH 121/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 37fed75..4dd363d 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -57,8 +57,8 @@ jobs: context-github: ${{ toJSON(github) }} job-name: 'CustomChange' change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' - interval: '100' - timeout: '3600' + interval: '10' + timeout: '1200' getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest From 3281c56ee7e151db157c492fcf419993b40385cf Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:21:32 +0530 Subject: [PATCH 122/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 4dd363d..4e921f9 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -59,6 +59,8 @@ jobs: change-request: '{"setCloseCode":"true","attributes":{"short_description":"FIRST CR Automated Software Deployment","description":"Automated Software Deployment.","assignment_group":"a715cd759f2002002920bde8132e7018","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"}}' interval: '10' timeout: '1200' + abortOnChangeCreationFailure: true + abortOnChangeStepTimeout: true getChangeStatus: name: getChangeStatus runs-on: ubuntu-latest From 79d77114bda4716e87d1b5d4600d7714eb42bcf4 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:32:18 +0530 Subject: [PATCH 123/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 4e921f9..526f868 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -51,7 +51,7 @@ jobs: with: #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN123 }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} From 0cbc832ccc5afc3111fce09e26a93f2d1880f819 Mon Sep 17 00:00:00 2001 From: saub90 <91385782+saub90@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:33:22 +0530 Subject: [PATCH 124/124] Update testpipelinega.yml --- .github/workflows/testpipelinega.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testpipelinega.yml b/.github/workflows/testpipelinega.yml index 526f868..3037ccd 100644 --- a/.github/workflows/testpipelinega.yml +++ b/.github/workflows/testpipelinega.yml @@ -49,9 +49,9 @@ jobs: - name: Custom Change uses: ServiceNow/servicenow-devops-change@dev with: - #devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} - #devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN123 }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }}