Skip to content

Commit 85e0916

Browse files
committed
#RI-4462 - add virus check for release
1 parent 01254be commit 85e0916

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,18 @@ aliases:
9696
echo 'Found dangers'; exit 1;
9797
fi
9898

99+
echo "export SKIP_VIRUSTOTAL_REPORT=true" >> $BASH_ENV
99100
echo 'Passed';
100101
shell: /bin/bash
101102
no_output_timeout: 15m
102103
virustotalReport: &virustotalReport
103104
run:
104105
name: Virustotal slack report
105106
command: &virusreport |
107+
if [ "$SKIP_VIRUSTOTAL_REPORT" == "true" ]; then
108+
exit 0;
109+
fi
110+
106111
FILE_NAME=virustotal.report.json
107112
BUILD_NAME=$BUILD_NAME FILE_NAME=$FILE_NAME VIRUS_CHECK_FAILED=$VIRUS_CHECK_FAILED node .circleci/virustotal-report.js &&
108113
curl -H "Content-type: application/json" --data @$FILE_NAME -H "Authorization: Bearer ${SLACK_TEST_REPORT_KEY}" -X POST https://slack.com/api/chat.postMessage
@@ -740,6 +745,7 @@ jobs:
740745
name: Send virustotal passed report
741746
command: |
742747
echo 'export VIRUS_CHECK_FAILED=0' >> $BASH_ENV
748+
echo 'export SKIP_VIRUSTOTAL_REPORT=false' >> $BASH_ENV
743749
- <<: *virustotalReport
744750
docker:
745751
executor: linux-executor

0 commit comments

Comments
 (0)