-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
69 lines (52 loc) · 1.04 KB
/
.gitlab-ci.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
stages:
#- setup
- build
- test
- publish
#services:
# - name: hub.docker.com/openbis/debian-openbis:20.10.7
# alias: openbis
# variables:
# SERVER_HOST_PORT: openbis:443
# GROUP_ID: 1000
# #CORE_PLUGINS: enabled-modules =
# pull_policy: if-not-present
image: gradle:alpine
before_script:
- GRADLE_USER_HOME="$(pwd)/.gradle"
- export GRADLE_USER_HOME
- OPENBIS="https://openbis:443"
- export OPENBIS
#check_openbis:
# stage: setup
# image: alpine/curl
# script:
# - curl -k ${OPENBIS}
# retry: 2
build:
stage: build
script: gradle --build-cache jar
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
publish:
stage: publish
script: gradle --build-cache publishAllPublicationsToEmpaGitlabRepository
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
test:
stage: test
script: gradle run --build-cache
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build
- .gradle