dcache-build.yml 556 Bytes
Newer Older
1
stages:
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
2
  - build:rpm
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
3
  - build:deb
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
4
# - build:tar
5

Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
6
variables:
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
7
  MAVEN_CLI_OPTS: "-DskipTests"
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
8
9
10
11
12
13
14
15
16


# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
  key: "CI_JOB_NAME"
  paths:
    - .m2/repository

17
18
19
rpm:
  stage: build:rpm
  image: dcache/maven-java11-rpm-build
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
20
  script:
21
    - mvn $MAVEN_CLI_OPTS -am -pl packages/fhs -P rpm clean package
Tigran Mkrtchyan's avatar
Tigran Mkrtchyan committed
22
23
24
25
26
27

deb:
  stage: build:deb
  image: dcache/maven-java11-deb-build
  script:
    - mvn $MAVEN_CLI_OPTS -am -pl packages/fhs -P deb clean package