mirror of
https://git.yoctoproject.org/meta-security
synced 2026-07-16 03:47:21 +00:00
.gitlab: send error reports
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
+9
-5
@@ -5,17 +5,21 @@ stages:
|
|||||||
stage: build
|
stage: build
|
||||||
image: crops/poky
|
image: crops/poky
|
||||||
before_script:
|
before_script:
|
||||||
|
- echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
|
||||||
|
- echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
|
||||||
- export PATH=~/.local/bin:$PATH
|
- export PATH=~/.local/bin:$PATH
|
||||||
- wget https://bootstrap.pypa.io/get-pip.py
|
- wget https://bootstrap.pypa.io/get-pip.py
|
||||||
- python3 get-pip.py
|
- python3 get-pip.py
|
||||||
- python3 -m pip install kas
|
- python3 -m pip install kas
|
||||||
- wget -q 'https://downloads.rclone.org/rclone-current-linux-amd64.zip'
|
|
||||||
- unzip -q rclone-current-linux-amd64.zip
|
|
||||||
- mv rclone-*-linux-amd64/rclone ~/.local/bin/
|
|
||||||
- rm -rf rclone-*-linux-amd64*
|
|
||||||
after_script:
|
after_script:
|
||||||
|
- cd $CI_PROJECT_DIR/poky
|
||||||
|
- . ./oe-init-build-env $CI_PROJECT_DIR/build
|
||||||
|
- for x in `ls $CI_PROJECT_DIR/build/tmp/log/error-report/ | grep error_report_`; do
|
||||||
|
- send-error-report -y tmp/log/error-report/$x
|
||||||
|
- done
|
||||||
|
- cd $CI_PROJECT_DIR
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
- ./scripts/ci-cleanup.sh
|
- $CI_PROJECT_DIR/scripts/ci-cleanup.sh
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- layers
|
- layers
|
||||||
|
|||||||
Reference in New Issue
Block a user