-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
50 lines (47 loc) · 1.38 KB
/
.gitlab-ci.yml
File metadata and controls
50 lines (47 loc) · 1.38 KB
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
stages:
# Compile stage is no longer needed since
# JAR file are not provided.
# - compile
- release
# remove . from the start of the job if
# compile is needed in future.
.compile:
stage: compile
image: openjdk:8u312-jdk
script:
- echo COMPILE_JOB_ID=$CI_JOB_ID >> compile.env
- $(pwd)/entrypoint.sh -ant
artifacts:
paths:
- dist/CoCoMa_cognos_1021.jar
reports:
# To ensure we've access to this file in the next stage
dotenv: compile.env
tags:
- cocoma-builder
only: # on what branch we'd like to run this job
refs:
- master
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
# No need for artifacts.
# needs:
# - job: compile
# artifacts: true
script:
- echo "Creating a release..."
# - echo "Last Job ID"
# - echo "${COMPILE_JOB_ID}"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$(grep -o "@@.*@@" src/com/dai/mif/cocoma/CoCoMa.java | sed "s/@//g" | cut -d" " -f2)'
description: 'CHANGELOG'
# assets:
# links:
# - name: 'CoCoMa JAR File'
# url: "https://git.amvara.de/amvara/cocoma-public/-/jobs/${COMPILE_JOB_ID}/artifacts/raw/dist/CoCoMa_cognos_1021.jar"
tags:
- cocoma-builder
only: # on what branch we'd like to run this job
refs:
- master