2018-11-22 23:23:56 +01:00
|
|
|
stages:
|
2019-04-13 06:09:25 +02:00
|
|
|
- build
|
2018-11-22 23:23:56 +01:00
|
|
|
|
2019-01-25 20:56:44 +01:00
|
|
|
variables:
|
2019-04-13 06:09:25 +02:00
|
|
|
name: "FabledSkyBlock"
|
|
|
|
path: "/builds/$CI_PROJECT_PATH"
|
|
|
|
version: "Build-73"
|
2019-01-25 20:56:44 +01:00
|
|
|
|
2018-11-22 23:23:56 +01:00
|
|
|
build:
|
|
|
|
stage: build
|
2019-01-25 20:56:44 +01:00
|
|
|
image: maven:3.5.3-jdk-8
|
|
|
|
script:
|
2019-04-13 06:09:25 +02:00
|
|
|
- find $path/ -type f -name "*.xml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
|
|
|
|
- find $path/ -type f -name "*.yml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
|
2019-02-08 18:40:18 +01:00
|
|
|
- mvn clean package
|
2019-04-13 06:09:25 +02:00
|
|
|
- find $path/ -depth -path '*original*' -delete
|
|
|
|
- mv $path/target/*.jar $path/
|
2018-11-22 23:23:56 +01:00
|
|
|
artifacts:
|
2019-01-25 20:56:44 +01:00
|
|
|
name: $name-$version
|
2018-11-22 23:23:56 +01:00
|
|
|
paths:
|
2019-04-13 06:09:25 +02:00
|
|
|
- "$path/*.jar"
|