Commit c4b66eb5 authored by kinuthia's avatar kinuthia
Browse files

test listing pipelines

parent a00cb1a4
Loading
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -66,6 +66,9 @@ workflow:
      variables:
        IVAS_PIPELINE_NAME: 'Renderer framesize BE test on $CI_COMMIT_BRANCH'
    - if: $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == 'peaq-enc-passthrough'
      variables:
        IVAS_PIPELINE_NAME: 'Aggregate long term logs: $CI_COMMIT_BRANCH'
    - if: $CI_PIPELINE_SOURCE == 'web' || $CI_PIPELINE_SOURCE == 'schedule' && $MANUAL_PIPELINE_TYPE == 'long-term-logs'
      variables:
        IVAS_PIPELINE_NAME: 'PEAQ encoder pass-through test: $CI_COMMIT_BRANCH'
    - if: $CI_PIPELINE_SOURCE == 'schedule' # Scheduled in any branch
@@ -1634,6 +1637,29 @@ voip-be-on-merge-request:
    - make -j >> /dev/null
    - python3 -m pytest tests/test_be_for_jbm_neutral_dly_profile.py

long-term-job-logs:
  rules:
    -if $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == "long-term-logs" # change this to a scheduled job
  stage: test
  timeout: "20 minutes"
  script:
  - curl --request GET "https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/pipelines"

  #- id_previous=$(python3 ci/get_id_of_last_job_occurence.py $CI_DEFAULT_BRANCH $CI_JOB_NAME $CI_PROJECT_ID)
  #- echo "Job ID from variables - $CI_JOB_ID, Job ID from script - $id_previous"
  #- curl --request GET "https://forge.3gpp.org/rep/api/v4/projects/$CI_PROJECT_ID/jobs/$id_previous/artifacts" --output artifacts.zip
  #- unzip artifacts.zip -d previous_artifacts
  # This wildcard thingy relies on only one csv file being present per job
  #- file_previous="previous_artifacts/mld--$CI_JOB_NAME-$id_previous--sha-*.csv"
  #- python3 ci/basop-pages/create_report_pages.py $PAGES_HTML_ARTIFACT_NAME $MERGED_CSV_ARTIFACT_NAME $CSV_ARTIFACT_NAME $file_previous $CI_JOB_ID $id_previous $CI_JOB_NAME
  - TODAY=$(date +'%Y-%m-%d')
  # create log if it doesn't exist
  - mkdir -p logs/$TODAY
  - ls
  - ls logs




# ---------------------------------------------------------------
# Complexity measurement jobs