diff options
author | Armin Kuster <akuster808@gmail.com> | 2020-08-28 13:04:28 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-08-29 07:25:35 -0700 |
commit | 2bfd2b2a050e973b21023598540f7e94e608aeed (patch) | |
tree | 3a0b1cf99cc0f1e085177118e00edf497c2dc98d | |
parent | a770033f345ed3f29e7c35a5e460fb1568d0f6ea (diff) | |
download | meta-security-2bfd2b2a050e973b21023598540f7e94e608aeed.tar.gz |
.gitlab: send error reports
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 132eb78..c7a89a9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -5,17 +5,21 @@ stages: | |||
5 | stage: build | 5 | stage: build |
6 | image: crops/poky | 6 | image: crops/poky |
7 | before_script: | 7 | before_script: |
8 | - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error | ||
9 | - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error | ||
8 | - export PATH=~/.local/bin:$PATH | 10 | - export PATH=~/.local/bin:$PATH |
9 | - wget https://bootstrap.pypa.io/get-pip.py | 11 | - wget https://bootstrap.pypa.io/get-pip.py |
10 | - python3 get-pip.py | 12 | - python3 get-pip.py |
11 | - python3 -m pip install kas | 13 | - python3 -m pip install kas |
12 | - wget -q 'https://downloads.rclone.org/rclone-current-linux-amd64.zip' | ||
13 | - unzip -q rclone-current-linux-amd64.zip | ||
14 | - mv rclone-*-linux-amd64/rclone ~/.local/bin/ | ||
15 | - rm -rf rclone-*-linux-amd64* | ||
16 | after_script: | 14 | after_script: |
15 | - cd $CI_PROJECT_DIR/poky | ||
16 | - . ./oe-init-build-env $CI_PROJECT_DIR/build | ||
17 | - for x in `ls $CI_PROJECT_DIR/build/tmp/log/error-report/ | grep error_report_`; do | ||
18 | - send-error-report -y tmp/log/error-report/$x | ||
19 | - done | ||
20 | - cd $CI_PROJECT_DIR | ||
17 | - rm -rf build | 21 | - rm -rf build |
18 | - ./scripts/ci-cleanup.sh | 22 | - $CI_PROJECT_DIR/scripts/ci-cleanup.sh |
19 | cache: | 23 | cache: |
20 | paths: | 24 | paths: |
21 | - layers | 25 | - layers |