bitcoinj/.gitlab-ci.yml
Sean Gilligan c17aea7bd9 .gitlab-ci.yml: move before_script and after_script to each job
Also, move the `apt-get install` lines into the `before_script` sections.

This will allow us to add other jobs that don't or can't run these scripts.
2023-04-20 22:51:49 +02:00

28 lines
697 B
YAML

bullseye-jdk11:
image: debian:bullseye-slim
before_script:
- apt-get update
- apt-get -y install openjdk-11-jdk-headless gradle
script:
- gradle build --stacktrace
after_script:
- gradle --version
artifacts:
name: bitcoinj-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- core/build/libs/*.jar
bookworm-jdk17:
image: debian:bookworm-slim
before_script:
- apt-get update
- apt-get -y install openjdk-17-jdk-headless gradle
script:
- gradle build --stacktrace
after_script:
- gradle --version
artifacts:
name: bitcoinj-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
paths:
- core/build/libs/*.jar