aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 5585f92c02885311f1ddd5fb8b8fec412667c3f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
image: archive.docker-registry.eecloud.nsn-net.net/imp/matryoshka:latest

stages:
  - build
  - publish
  - trigger-integration-tests

build:
  stage: build
  script:
    - mvn -e -T2 -Panalysis clean install
  artifacts:
    paths:
      - hv-collector-coverage/target/site/jacoco-aggregate
      - hv-collector-core/target/reports
      - hv-collector-main/target/reports
      - hv-collector-utils/target/reports
      - hv-collector-dcae-app-simulator/target/reports
      - hv-collector-xnf-simulator/target/reports


publish:
  stage: publish
  only:
    - master
  script:
    - docker login $DOCKER_REPO_ADDR -u $DOCKER_REPO_USER -p $DOCKER_REPO_PASS
    - mvn -e -DskipTests -DskipAnalysis -Ddocker-image.registry="$DOCKER_REPO_ADDR" deploy
    - "curl -X POST -F token=$INTEGRATION_TESTS_TRIGGER_TOKEN -F ref=master https://gitlabe1.ext.net.nokia.com/api/v4/projects/33403/trigger/pipeline"

pages:
  stage: publish
  only:
    - master
  dependencies:
    - build
  artifacts:
    paths:
      - public
  script:
    - mkdir -p public/analysis
    - mv hv-collector-coverage/target/site/jacoco-aggregate public/coverage
    - mv hv-collector-core/target/reports public/analysis/core
    - mv hv-collector-main/target/reports public/analysis/main
    - mv hv-collector-utils/target/reports public/analysis/utils
    - mv hv-collector-dcae-app-simulator/target/reports public/analysis/dcae-app-simulator
    - mv hv-collector-xnf-simulator/target/reports public/analysis/xnf-simulator