Skip to content

Motr CI build

Need to build cortx-motr, cortx-motr-utils, and cortx-hare rpms in a CI job (that won't run every push). Ideally this will be done via the internal package repo, but until this is fixed we will use the "latest" artifact api URL

So will be consumed in the plugin build as a CI job that the other jobs depend on as below

motr_rpm_download:
  stage: .pre
  script:
    - 'curl -L --output rpms.zip --header "JOB-TOKEN: $CI_JOB_TOKEN" "https://git.ichec.ie/api/v4/projects/418/jobs/artifacts/devel/download?job=motr_rpm_build"'
    - unzip -q rpms.zip
  artifacts:
    name: "motr-rpms"
    expire_in: 1 day
    paths:
      - ${CI_PROJECT_DIR}/motr-${CI_RUNNER_EXECUTABLE_ARCH}-rpms