2019-04-15 11:11:10 +02:00
|
|
|
image: gradle:alpine
|
2018-11-22 23:23:56 +01:00
|
|
|
|
2019-04-15 12:31:47 +02:00
|
|
|
variables:
|
2019-08-27 01:33:31 +02:00
|
|
|
name: "FabledSkyBlock"
|
2019-04-15 12:31:47 +02:00
|
|
|
path: "/builds/$CI_PROJECT_PATH"
|
2019-09-29 21:25:47 +02:00
|
|
|
version: "2.0.1"
|
2019-04-15 12:31:47 +02:00
|
|
|
|
2019-04-15 11:11:10 +02:00
|
|
|
before_script:
|
2019-04-15 12:19:38 +02:00
|
|
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
2019-04-15 11:11:10 +02:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2018-11-22 23:23:56 +01:00
|
|
|
build:
|
|
|
|
stage: build
|
2019-01-25 20:56:44 +01:00
|
|
|
script:
|
2019-08-27 01:33:31 +02:00
|
|
|
- find $path/ -type f -name "*.gradle" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
|
2019-04-15 12:19:38 +02:00
|
|
|
- gradle build
|
2019-04-15 12:31:47 +02:00
|
|
|
- mv $path/build/libs/*.jar $path/
|
2018-11-22 23:23:56 +01:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-04-15 12:31:47 +02:00
|
|
|
- $path/*.jar
|