Skip to content
Snippets Groups Projects
Commit 74ac8cf1 authored by René Schöne's avatar René Schöne
Browse files

Do not use cache for CI, and merge build and jar job.

parent 853c0a78
No related branches found
No related tags found
1 merge request!15Resolve "Creation of jar in CI fails"
Pipeline #6296 passed
stages: stages:
- build - build
- test - test
- jar
build: build:
image: openjdk:8 image: openjdk:8
stage: build stage: build
script: script:
- ./gradlew --console=plain --build-cache assemble - ./gradlew --console=plain assemble jar
cache: artifacts:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths: paths:
- build - "/builds/jastadd/relational-rags/build/libs/*relast*.jar"
- .gradle
test: test:
image: openjdk:8 image: openjdk:8
stage: test stage: test
script: script:
- ./gradlew --continue --console=plain --info check - ./gradlew --console=plain --info test
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build
- .gradle
jar:
image: openjdk:8
stage: jar
script:
- ./gradlew --continue --console=plain --info jar
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build
- .gradle
artifacts:
paths:
- "/builds/jastadd/*/build/libs/*relast*.jar"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment