Commit 4fd659b5 authored by canterburym's avatar canterburym
Browse files

Adding artefacts to Merge Requests

parent 245edab9
Loading
Loading
Loading
Loading
+32 −2
Original line number Diff line number Diff line
workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_COMMIT_BRANCH

stages:
  - check
  - build

process_asn:
  image: "mcanterb/asn1test:latest"
  image: "forge.3gpp.org:5050/sa3/li/asn1test:latest"
  stage: check
  interruptible: true
  script:
    - python3 testing/asn_process.py

process_xsd:
  image: "mcanterb/xsdtest:latest"
  image: "forge.3gpp.org:5050/sa3/li/xsdtest:latest"
  stage: check
  interruptible: true
  script:
    - python3 testing/xsd_process.py

generate_artefacts:
  image: "forge.3gpp.org:5050/sa3/li/artefacts:latest"
  stage: build
  interruptible: true
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  script:
    - echo $CI_PROJECT_ID
    - echo $CI_PROJECT_NAME
    - echo $CI_PROJECT_PATH
    - echo $CI_PIPELINE_SOURCE
    - echo $CI_OPEN_MERGE_REQUESTS
    - echo $CI_MERGE_REQUEST_IID
    - echo $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
    - echo $ARTEFACT_NAME
    - forgelib-changedocs -v https://$CI_SERVER_HOST $CI_PROJECT_ID $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID
  artifacts:
    untracked: true
    paths:
      - "*.docx"
    name: $CI_MERGE_REQUEST_TITLE
    expire_in: 30 days