Commit 88b52ea0 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

main_build_pip

parent 73692168
Loading
Loading
Loading
Loading
+20 −1
Original line number Diff line number Diff line
stages:
  - test  # to Security and Compliance gitLab
  - main_build
  - main_security
  - sast
  - merge_request_staging_into_main
@@ -28,7 +29,8 @@ variables:
  CI_JOB_TOKEN: $CI_JOB_TOKEN
  CI_DEBUG_TRACE: "true"
  PROJECT_ID: "294"
  SAST_DEFAULT_ANALYZERS: "bandit"
  SAST_DEFAULT_ANALYZERS: "bandit" # to sast
  COMPILE: "false"   # to sast

.staging_common: &staging_common
  only:
@@ -121,8 +123,25 @@ merge_request_staging_into_main:
  only:
    - staging

main_build_pip:
  stage: main_build
  tags:
    - shell
  script:
    - |
      pip install -r services/TS29222_CAPIF_Access_Control_Policy_API/requirements.txt 
  rules:
    - if: '$CI_COMMIT_REF_NAME == "OCF16-first-steps-on-ci-at-gitlab-repository"'
      when: always
    - when: never
  artifacts:
    paths:
      - ./

sast:
  stage: main_security
  needs:
    - main_build_pip
  rules:
    - if: '$CI_COMMIT_REF_NAME == "OCF16-first-steps-on-ci-at-gitlab-repository"'
      when: always