Skip to content
Snippets Groups Projects

Resolve "generate general framework"

Compare and Show latest version
1 file
+ 20
25
Compare changes
  • Side-by-side
  • Inline
+ 20
25
stages:
- preparation
# - run_services
- result_handling
- services
- reporting
# shared variable(s) across jobs
#variables:
# CI-SERVICES-CACHE_DIR: "$CI_PROJECT_DIR/.ci-services"
cache:
paths:
- .ci-services
load_framework:
stage: preparation
default:
image: python:3
before_script:
- apt-get update
- apt-get install git
- git clone https://gitext.gfz-potsdam.de/id2/hifis/software-services/fair/ci-services.git .ci-services
- mkdir -p ci-service-report
artifacts:
paths:
- ./ci-service-report
expire_in: 1h
service1:
stage: services
tags:
- ci-services
script:
- apk update
- apk add git
- git clone https://gitext.gfz-potsdam.de/id2/hifis/software-services/fair/ci-services.git .ci-services
- touch ci-service-report/service1
except:
- master
upload_result:
stage: result_handling
image: python:3
stage: reporting
tags:
- ci-services
script:
- mkdir ci-service-report
- touch ci-service-report/foo.txt
- tar -zcvf ci-service-report/test.tar.gz ci-service-report
artifacts:
paths:
- ./ci-service-report/test.tar.gz
expire_in: 2h
- tar -zcvf report.tar.gz ci-service-report
- rm -rf ci-service-report/*
- mv report.tar.gz ci-service-report/report.tar.gz
except:
- master
Loading