blob: c35353b3aec497515de7c66c4a313578214cb0c9 [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:
fkrzywkad76905b2018-07-30 12:55:03 +020011 - mvn -e -T2 -Panalysis clean install -Ddocker.http_proxy="http://$PROXY_HOST:$PROXY_PORT" -Ddocker.https_proxy="http://$PROXY_HOST:$PROXY_PORT"
Piotr Jaszczyke98fdcc2018-04-26 09:17:09 +020012 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
Piotr Jaszczyk0aa02842018-06-06 13:18:05 +020021publish:
22 stage: publish
23 only:
24 - master
25 script:
26 - docker login $DOCKER_REPO_ADDR -u $DOCKER_REPO_USER -p $DOCKER_REPO_PASS
fkrzywka62e9f932018-07-31 09:31:05 +020027 - |
28 mvn -e -DskipTests -DskipAnalysis \
29 -Ddocker-image.registry="$DOCKER_REPO_ADDR" \
30 -Ddocker.http_proxy="http://$PROXY_HOST:$PROXY_PORT" \
31 -Ddocker.https_proxy="http://$PROXY_HOST:$PROXY_PORT" \
32 deploy
Piotr Jaszczyk0aa02842018-06-06 13:18:05 +020033 - "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 +020034
35pages:
36 stage: publish
37 only:
38 - master
39 dependencies:
40 - build
41 artifacts:
42 paths:
43 - public
44 script:
45 - mkdir -p public/analysis
46 - mv hv-collector-coverage/target/site/jacoco-aggregate public/coverage
47 - mv hv-collector-core/target/reports public/analysis/core
48 - mv hv-collector-main/target/reports public/analysis/main
49 - mv hv-collector-utils/target/reports public/analysis/utils
50 - mv hv-collector-dcae-app-simulator/target/reports public/analysis/dcae-app-simulator
Jakub Dudycz13837752018-07-09 08:06:01 +020051 - mv hv-collector-xnf-simulator/target/reports public/analysis/xnf-simulator
Piotr Jaszczykdc3d4d22018-06-29 12:45:19 +020052