diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6dda2cc18..21f40f4c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,7 @@ stages: - - config-validation + - shared-pipeline-build + - shared-pipeline-test + - shared-pipeline-publish - benchmarks - benchmarks-report @@ -7,29 +9,25 @@ variables: SKIP_SHARED_PIPELINE: "true" include: - - local: ".gitlab/config-registry.yml" + - local: ".gitlab/one-pipeline.locked.yml" - local: ".gitlab/benchmarks.yml" - -# Config Registry CI Jobs validate_supported_configurations_v2_local_file: - stage: config-validation - image: registry.ddbuild.io/ci/libdatadog-build/packaging:100425777 - tags: ["arch:amd64"] - rules: - - when: on_success extends: .validate_supported_configurations_v2_local_file variables: LOCAL_JSON_PATH: "supported-configurations.json" - BACKFILLED: true update_central_configurations_version_range_v2: - stage: config-validation - image: registry.ddbuild.io/ci/libdatadog-build/packaging:100425777 - tags: ["arch:amd64"] extends: .update_central_configurations_version_range_v2 variables: - LOCAL_REPO_NAME: "dd-trace-cpp" LOCAL_JSON_PATH: "supported-configurations.json" LANGUAGE_NAME: "cpp" - MULTIPLE_RELEASE_LINES: "false" + +# Template jobs that ignore SKIP_SHARED_PIPELINE +deploy_to_reliability_env: + rules: + - when: never + +notify-pipeline-failure: + rules: + - when: never diff --git a/.gitlab/config-registry.yml b/.gitlab/config-registry.yml deleted file mode 100644 index 885c27801..000000000 --- a/.gitlab/config-registry.yml +++ /dev/null @@ -1,41 +0,0 @@ -# This CI jobs are copied from libdatadog-build one-pipeline.yml gitlab template. -# This URL is available in the dd-gitlab/publish-content-addresable-templates job whenever -# a change is made on the one-pipeline template. -variables: - SCRIPTS_BASE_URL: https://gitlab-templates.ddbuild.io/libdatadog/one-pipeline/ca/f14ac28614630d12bcfe6cba4fd8d72dce142c62ff0b053ba7c323622104ebd7/scripts/config-inversion/ - -.download-scripts-from-template: &download-scripts-from-template - - mkdir -p scripts - - | - for script_file in "config-inversion-local-validation.py" "config-inversion-update-supported-range.py" - do - curl --location --fail --show-error --output "scripts/${script_file}" "${SCRIPTS_BASE_URL}/${script_file}" - chmod +x scripts/$script_file - done - -.validate_supported_configurations_v2_local_file: - allow_failure: false - rules: - - when: on_success - variables: - LOCAL_JSON_PATH: "" - BACKFILLED: "true" - before_script: - - *download-scripts-from-template - script: - - scripts/config-inversion-local-validation.py - -.update_central_configurations_version_range_v2: - allow_failure: false - rules: - - if: '$CI_COMMIT_TAG =~ /^v?[0-9]+\.[0-9]+\.[0-9]+$/' - when: always - variables: - LOCAL_JSON_PATH: "" - LANGUAGE_NAME: "" - MULTIPLE_RELEASE_LINES: "false" # expect "true" or "false" as a value to determine if a new "branch" identifier is needed to differentiate between multiple release lines - before_script: - - *download-scripts-from-template - - export FP_API_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.$CI_PROJECT_NAME.FP_API_KEY --with-decryption --query "Parameter.Value" --out text) - script: - - scripts/config-inversion-update-supported-range.py \ No newline at end of file diff --git a/.gitlab/one-pipeline.locked.yml b/.gitlab/one-pipeline.locked.yml new file mode 100644 index 000000000..7586c87a2 --- /dev/null +++ b/.gitlab/one-pipeline.locked.yml @@ -0,0 +1,4 @@ +# DO NOT EDIT THIS FILE MANUALLY +# This file is auto-generated by automation. +include: + - remote: https://gitlab-templates.ddbuild.io/libdatadog/include/versions/1.16.0/one-pipeline.yml