diff --git a/.github/workflows/snowpipe.yml b/.github/workflows/snowpipe.yml index f348435..6a41fb0 100644 --- a/.github/workflows/snowpipe.yml +++ b/.github/workflows/snowpipe.yml @@ -10,7 +10,8 @@ on: jobs: build: - # Purpose of this job is to Apply Remote Changes for the branch triggering + # Purpose of this job is to Check the Quality of changes, + # then Apply Remote Changes for the branch triggering # the pipeline build to the Dev instance, then publish the application to # app repo using the template versioning format. name: Publish from Dev @@ -19,9 +20,27 @@ jobs: # if: ${{ github.event_name == 'pull_request'}} steps: - + - name: Checkout + uses: actions/checkout@v2 + + - name: QualityClouds CI/CD BuildCheck for Servicenow + uses: qualityclouds/action-snow-full-scan@0.0.5 + with: + token: ${{ secrets.QC_TOKEN }} + instance_url: 'https://ven02284.service-now.com' + api_url: 'https://api.qualityclouds.com' + + - name: Slack Notification + if: ${{ failure() }} + uses: slackapi/slack-github-action@v1.15.0 + with: + channel-id: 'C010SJZGLR1' # Slack channel id to post message + slack-message: 'Application deployment stopped due to Quality Gate FAIL' + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + - name: ServiceNow CI/CD Apply Changes - uses: ServiceNow/sncicd-apply-changes@1.0.0 + uses: ServiceNow/sncicd-apply-changes@2.0.0 env: nowUsername: ${{ secrets.SN_USERNAME }} nowPassword: ${{ secrets.SN_PASSWORD }} @@ -37,9 +56,9 @@ jobs: # Optional, add +X to version number. Default: 1 # incrementBy: X env: - nowUsername: ${{ secrets.SN_USERNAME }} - nowPassword: ${{ secrets.SN_PASSWORD }} - nowSourceInstance: ${{ secrets.SN_DEV_INSTANCE }} + snowUsername: ${{ secrets.SN_USERNAME }} + snowPassword: ${{ secrets.SN_PASSWORD }} + snowSourceInstance: ${{ secrets.SN_DEV_INSTANCE }} appSysID: ${{ secrets.SN_APP_SYSID }} # This is required to pass the version number output from Publish App diff --git a/7b589838db1df410f73b6451ca9619ba/author_elective_update/sys_script_7160135edb15fc10f73b6451ca9619d5.xml b/7b589838db1df410f73b6451ca9619ba/author_elective_update/sys_script_7160135edb15fc10f73b6451ca9619d5.xml new file mode 100644 index 0000000..6fbcdf4 --- /dev/null +++ b/7b589838db1df410f73b6451ca9619ba/author_elective_update/sys_script_7160135edb15fc10f73b6451ca9619d5.xml @@ -0,0 +1,119 @@ + + + false + package_private + false + false + false + false + true + false + true + false + false + incident + + + false + + false + + demo1_br_incident_5 + 100 + 100 + + + + + + + + sys_script + angel.marquez + 2021-07-14 17:48:01 + false + global + / + 7160135edb15fc10f73b6451ca9619d5 + 34 + demo1_br_incident_5 + + 7b589838db1df410f73b6451ca9619ba + + false + 7b589838db1df410f73b6451ca9619ba + sys_script_7160135edb15fc10f73b6451ca9619d5 + angel.marquez + 2022-02-09 08:50:23 +