.gitlab-ci.yml 480 Bytes
Newer Older
Matthias Betz's avatar
Matthias Betz committed
1
2
variables:
  JAVA_HOME: "/usr/lib/jvm/java-1.8.0-openjdk-amd64"
3
4


Matthias Betz's avatar
Matthias Betz committed
5
6
7
#build:
#    script:
 #       - mvn package -B
Matthias Betz's avatar
Matthias Betz committed
8
9
10
        
release:
    script:
Matthias Betz's avatar
Matthias Betz committed
11
        - mvn package -B
Matthias Betz's avatar
Matthias Betz committed
12
        - FILE= ls target/ | grep '\.zip$' | head -n 1
Matthias Betz's avatar
Matthias Betz committed
13
        - echo $FILE
Matthias Betz's avatar
Matthias Betz committed
14
15
        - echo $CI_PROJECT_ID
        - echo $CI_COMMIT_TAG
Matthias Betz's avatar
Matthias Betz committed
16
17
        - echo ${CI_API_V4_URL}
#        - curl --request POST --header "PRIVATE-TOKEN: ${TOKEN}" --form "file=@${FILE}" 
Matthias Betz's avatar
Matthias Betz committed
18
19
    only:
        refs:
Matthias Betz's avatar
Matthias Betz committed
20
            - master
Matthias Betz's avatar
Matthias Betz committed
21