From 48c1b49aa4cf7796ec27b7c07856142e2b016274 Mon Sep 17 00:00:00 2001 From: michal-dagan <109464765+michal-dagan@users.noreply.github.com> Date: Wed, 28 Feb 2024 20:10:01 +0200 Subject: [PATCH] update the setting of DEMISTO_SDK_GRAPH_FORCE_CREATE (#33107) * update DEMISTO_SDK_GRAPH_FORCE_CREATE * fixed * update * test * revert test --- .gitlab/ci/.gitlab-ci.on-push.yml | 5 +++++ .gitlab/ci/.gitlab-ci.sdk-nightly.yml | 4 ---- .gitlab/ci/.gitlab-ci.variables.yml | 1 - 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab/ci/.gitlab-ci.on-push.yml b/.gitlab/ci/.gitlab-ci.on-push.yml index 18909754fdad..052ad3c1f476 100644 --- a/.gitlab/ci/.gitlab-ci.on-push.yml +++ b/.gitlab/ci/.gitlab-ci.on-push.yml @@ -139,6 +139,11 @@ validate-content-conf: - !reference [.create-release-notes-and-common-docs] - !reference [.secrets-fetch] - section_start "Create or update content graph" --collapsed + - | + echo "set DEMISTO_SDK_GRAPH_FORCE_CREATE to true to create graph from scratch" + export DEMISTO_SDK_GRAPH_FORCE_CREATE=true + echo "DEMISTO_SDK_GRAPH_FORCE_CREATE was set to true to create graph from scratch" + echo $DEMISTO_SDK_GRAPH_FORCE_CREATE - echo "Staging the repo to include the private packs in the graph" - git add Packs - echo "Updating the content graph" diff --git a/.gitlab/ci/.gitlab-ci.sdk-nightly.yml b/.gitlab/ci/.gitlab-ci.sdk-nightly.yml index bc79ef9ddf7a..ea6e944cd22a 100644 --- a/.gitlab/ci/.gitlab-ci.sdk-nightly.yml +++ b/.gitlab/ci/.gitlab-ci.sdk-nightly.yml @@ -171,7 +171,6 @@ demisto-sdk-nightly:xsoar-prepare-testing-bucket: needs: [] stage: prepare-testing-bucket script: - - unset DEMISTO_SDK_GRAPH_FORCE_CREATE - !reference [.generic-prepare-testing-bucket, script] - job-done @@ -197,7 +196,6 @@ demisto-sdk-nightly:mpv2-prepare-testing-bucket: needs: [] stage: prepare-testing-bucket script: - - unset DEMISTO_SDK_GRAPH_FORCE_CREATE - !reference [.generic-prepare-testing-bucket, script] - job-done @@ -221,7 +219,6 @@ demisto-sdk-nightly:xpanse-prepare-testing-bucket: needs: [] stage: prepare-testing-bucket script: - - unset DEMISTO_SDK_GRAPH_FORCE_CREATE - !reference [.generic-prepare-testing-bucket, script] - job-done @@ -244,7 +241,6 @@ demisto-sdk-nightly:xsoar-saas-prepare-testing-bucket: needs: [] stage: prepare-testing-bucket script: - - unset DEMISTO_SDK_GRAPH_FORCE_CREATE - !reference [.generic-prepare-testing-bucket, script] - job-done diff --git a/.gitlab/ci/.gitlab-ci.variables.yml b/.gitlab/ci/.gitlab-ci.variables.yml index 639863ec6e36..a4af7160ca66 100644 --- a/.gitlab/ci/.gitlab-ci.variables.yml +++ b/.gitlab/ci/.gitlab-ci.variables.yml @@ -38,7 +38,6 @@ variables: OVERRIDE_ALL_PACKS: "false" TEST_UPLOAD: "true" NATIVE_CANDIDATE_IMAGE: "latest" - DEMISTO_SDK_GRAPH_FORCE_CREATE: "true" # change this when the demisto-sdk update-graph command is stable DEMISTO_SDK_LOG_FILE_PATH: "${ARTIFACTS_FOLDER}/logs" CONTENT_GITLAB_CI: "true" POETRY_VIRTUALENVS_OPTIONS_ALWAYS_COPY: "true"