Commit d80dfda8 authored by norvell's avatar norvell
Browse files

Try excluding build jobs

parent 1bafc920
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -842,6 +842,10 @@ clang-format-check:
# ensure that codec builds on linux
build-codec-linux-make:
  rules:
    - if: $CI_JOB_NAME == 'pages'
      when: never
    - if: $MANUAL_PIPELINE_TYPE == 'long-term-logs'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'web'
    - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' # trigger build job for all MRs
@@ -859,6 +863,10 @@ build-codec-linux-make:
# ensure that codec builds on linux with instrumentation active
build-codec-linux-instrumented-make:
  rules:
    - if: $CI_JOB_NAME == 'pages'
      when: never
    - if: $MANUAL_PIPELINE_TYPE == 'long-term-logs'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'web'
    - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" # only have MR pipelines for MRs to main
@@ -876,6 +884,10 @@ build-codec-linux-instrumented-make:

build-codec-linux-debugging-make:
  rules:
    - if: $CI_JOB_NAME == 'pages'
      when: never
    - if: $MANUAL_PIPELINE_TYPE == 'long-term-logs'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'web'
    - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" # only have MR pipelines for MRs to main
@@ -894,6 +906,10 @@ build-codec-linux-debugging-make:

build-codec-windows-msbuild:
  rules:
    - if: $CI_JOB_NAME == 'pages'
      when: never
    - if: $MANUAL_PIPELINE_TYPE == 'long-term-logs'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'web'
    - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' # trigger build job for all MRs
@@ -1658,7 +1674,8 @@ ivas-long-term-job-logs:
      # TODO add variable to inject logs from backup copy

      # handle case where the job is running for the first time. e.g where the job was not found.
      id_previous=$(python3 ci/get_id_of_last_job_occurence.py $CI_DEFAULT_BRANCH "$CI_JOB_NAME" $CI_PROJECT_ID)
      #id_previous=$(python3 ci/get_id_of_last_job_occurence.py $CI_DEFAULT_BRANCH "$CI_JOB_NAME" $CI_PROJECT_ID)
      id_previous="-1"
      echo "Job ID from variables - "$CI_JOB_NAME", Job ID from script - $id_previous"
      
      if [ "$id_previous" != "-1" ]; then