.gitlab-ci.yml 1006 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. image: ghcr.io/siemens/kas/kas-isar:latest
  2. variables:
  3. GIT_STRATEGY: clone
  4. .common-build: &common-build
  5. stage: build
  6. before_script:
  7. - export http_proxy=$HTTP_PROXY
  8. - export https_proxy=$HTTPS_PROXY
  9. - export ftp_proxy=$FTP_PROXY
  10. - export no_proxy=$NO_PROXY
  11. - export DISTRO_APT_PREMIRRORS=$DISTRO_APT_PREMIRRORS
  12. artifacts:
  13. name: "logs-$CI_JOB_ID"
  14. paths:
  15. - build/tmp/work/*/*/*/temp
  16. - build/job-results
  17. reports:
  18. junit:
  19. - build/job-results/job*/results.xml
  20. when: always
  21. expire_in: 1 week
  22. fast-ci:
  23. <<: *common-build
  24. except:
  25. - schedules
  26. script:
  27. - scripts/ci_build.sh -q -f -d
  28. full-ci:
  29. <<: *common-build
  30. only:
  31. - schedules
  32. script:
  33. - PREVIOUS_SHA="$(cat .CI_COMMIT_SHA || true)"
  34. - if [ "$CI_COMMIT_SHA" != "$PREVIOUS_SHA" ]; then
  35. echo "$CI_COMMIT_SHA" > .CI_COMMIT_SHA;
  36. scripts/ci_build.sh -q -c -r -d;
  37. fi
  38. cache:
  39. key: "$CI_COMMIT_REF_SLUG"
  40. paths:
  41. - .CI_COMMIT_SHA