blob: 5585f92c02885311f1ddd5fb8b8fec412667c3f4 [file] [log] [blame]
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +02001image: archive.docker-registry.eecloud.nsn-net.net/imp/matryoshka:latest
2
3stages:
4 - build
Piotr Jaszczyk0aa02842018-06-06 13:18:05 +02005 - publish
6 - trigger-integration-tests
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +02007
8build:
9 stage: build
10 script:
11 - mvn -e -T2 -Panalysis clean install
12 artifacts:
13 paths:
Piotr Jaszczyk0aa02842018-06-06 13:18:05 +020014 - hv-collector-coverage/target/site/jacoco-aggregate
15 - hv-collector-core/target/reports
16 - hv-collector-main/target/reports
17 - hv-collector-utils/target/reports
Piotr Jaszczykdc3d4d22018-06-29 12:45:19 +020018 - hv-collector-dcae-app-simulator/target/reports
Jakub Dudycz13837752018-07-09 08:06:01 +020019 - hv-collector-xnf-simulator/target/reports
Piotr Jaszczykdc3d4d22018-06-29 12:45:19 +020020
21
Piotr Jaszczyk0aa02842018-06-06 13:18:05 +020022publish:
23 stage: publish
24 only:
25 - master
26 script:
27 - docker login $DOCKER_REPO_ADDR -u $DOCKER_REPO_USER -p $DOCKER_REPO_PASS
Piotr Jaszczyk69f43f22018-06-25 09:59:01 +020028 - mvn -e -DskipTests -DskipAnalysis -Ddocker-image.registry="$DOCKER_REPO_ADDR" deploy
Piotr Jaszczyk0aa02842018-06-06 13:18:05 +020029 - "curl -X POST -F token=$INTEGRATION_TESTS_TRIGGER_TOKEN -F ref=master https://gitlabe1.ext.net.nokia.com/api/v4/projects/33403/trigger/pipeline"
Piotr Jaszczykdc3d4d22018-06-29 12:45:19 +020030
31pages:
32 stage: publish
33 only:
34 - master
35 dependencies:
36 - build
37 artifacts:
38 paths:
39 - public
40 script:
41 - mkdir -p public/analysis
42 - mv hv-collector-coverage/target/site/jacoco-aggregate public/coverage
43 - mv hv-collector-core/target/reports public/analysis/core
44 - mv hv-collector-main/target/reports public/analysis/main
45 - mv hv-collector-utils/target/reports public/analysis/utils
46 - mv hv-collector-dcae-app-simulator/target/reports public/analysis/dcae-app-simulator
Jakub Dudycz13837752018-07-09 08:06:01 +020047 - mv hv-collector-xnf-simulator/target/reports public/analysis/xnf-simulator
Piotr Jaszczykdc3d4d22018-06-29 12:45:19 +020048