From 8c33006456c2b0a4aff27043a476ca614721fc69 Mon Sep 17 00:00:00 2001 From: Sebastian Spaink <3441183+sspaink@users.noreply.github.com> Date: Wed, 1 Dec 2021 16:38:43 -0600 Subject: [PATCH] chore: remove triggering update-config bot in CI (#10195) (cherry picked from commit ea7b0595492e0419854ee601f186945ab6245077) --- .circleci/config.yml | 19 ------------------- scripts/update_config.sh | 22 ---------------------- 2 files changed, 41 deletions(-) delete mode 100755 scripts/update_config.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index f282aa8b7a819..c7821fab6cc53 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,10 +32,6 @@ commands: - store_artifacts: path: './new-config' destination: 'new-config' - - persist_to_workspace: - root: './new-config' - paths: - - '*' check-changed-files-or-halt: steps: - run: ./scripts/check-file-changes.sh @@ -417,13 +413,6 @@ jobs: steps: - generate-config: os: windows - update-config: - executor: go-1_17 - steps: - - checkout - - attach_workspace: - at: '/new-config' - - run: ./scripts/update_config.sh ${UPDATE_CONFIG_TOKEN} commonjobs: - &test-awaiter @@ -511,14 +500,6 @@ workflows: branches: only: - master - - 'update-config': - requires: - - 'generate-config-win' - - 'generate-config' - filters: - branches: - only: - - master - 'share-artifacts': requires: - 'i386-package' diff --git a/scripts/update_config.sh b/scripts/update_config.sh deleted file mode 100755 index 87cfe2620ab61..0000000000000 --- a/scripts/update_config.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash -# This script is responsible for triggering the Tiger Bot endpoint that will create the pull request with the newly generated configs. -# This script is meant to be only ran in within the Circle CI pipeline. - -token=$1 - -config_path="/new-config" - -if [ ! -f "$config_path/telegraf.conf" ]; then - echo "$config_path/telegraf.conf does not exist" - exit -fi -if [ ! -f "$config_path/telegraf_windows.conf" ]; then - echo "$config_path/telegraf_windows.conf does not exist" - exit -fi - -if cmp -s "$config_path/telegraf.conf" "etc/telegraf.conf" && cmp -s "$config_path/telegraf_windows.conf" "etc/telegraf_windows.conf"; then - echo "Both telegraf.conf and telegraf_windows.conf haven't changed" -fi - -curl -H "Authorization: Bearer $token" -X POST "https://182c7jdgog.execute-api.us-east-1.amazonaws.com/prod/updateConfig"