Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 1 | image: archive.docker-registry.eecloud.nsn-net.net/imp/matryoshka:latest |
| 2 | |
| 3 | stages: |
| 4 | - build |
Piotr Jaszczyk | 0aa0284 | 2018-06-06 13:18:05 +0200 | [diff] [blame] | 5 | - publish |
| 6 | - trigger-integration-tests |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 7 | |
| 8 | build: |
| 9 | stage: build |
| 10 | script: |
| 11 | - mvn -e -T2 -Panalysis clean install |
| 12 | artifacts: |
| 13 | paths: |
Piotr Jaszczyk | 0aa0284 | 2018-06-06 13:18:05 +0200 | [diff] [blame] | 14 | - 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 Jaszczyk | dc3d4d2 | 2018-06-29 12:45:19 +0200 | [diff] [blame] | 18 | - hv-collector-dcae-app-simulator/target/reports |
Jakub Dudycz | 1383775 | 2018-07-09 08:06:01 +0200 | [diff] [blame] | 19 | - hv-collector-xnf-simulator/target/reports |
Piotr Jaszczyk | dc3d4d2 | 2018-06-29 12:45:19 +0200 | [diff] [blame] | 20 | |
| 21 | |
Piotr Jaszczyk | 0aa0284 | 2018-06-06 13:18:05 +0200 | [diff] [blame] | 22 | publish: |
| 23 | stage: publish |
| 24 | only: |
| 25 | - master |
| 26 | script: |
| 27 | - docker login $DOCKER_REPO_ADDR -u $DOCKER_REPO_USER -p $DOCKER_REPO_PASS |
Piotr Jaszczyk | 69f43f2 | 2018-06-25 09:59:01 +0200 | [diff] [blame] | 28 | - mvn -e -DskipTests -DskipAnalysis -Ddocker-image.registry="$DOCKER_REPO_ADDR" deploy |
Piotr Jaszczyk | 0aa0284 | 2018-06-06 13:18:05 +0200 | [diff] [blame] | 29 | - "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 Jaszczyk | dc3d4d2 | 2018-06-29 12:45:19 +0200 | [diff] [blame] | 30 | |
| 31 | pages: |
| 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 Dudycz | 1383775 | 2018-07-09 08:06:01 +0200 | [diff] [blame] | 47 | - mv hv-collector-xnf-simulator/target/reports public/analysis/xnf-simulator |
Piotr Jaszczyk | dc3d4d2 | 2018-06-29 12:45:19 +0200 | [diff] [blame] | 48 | |