2018-11-22 23:23:56 +01:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2019-01-25 20:56:44 +01:00
|
|
|
variables:
|
|
|
|
name: "FabledSkyBlock"
|
|
|
|
path: "/builds/Songoda/SkyBlock"
|
|
|
|
version: "Build-63"
|
|
|
|
|
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:
|
|
|
|
- find $path/ -type f -name "*.xml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
|
|
|
|
- mvn clean package
|
|
|
|
- find $path/ -type f -name "*.yml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g
|
|
|
|
- mvn clean package
|
|
|
|
- find $path/$name-Plugin/ -depth -path '*original*' -delete
|
|
|
|
- mv -v $path/$name-Plugin/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-01-25 20:56:44 +01:00
|
|
|
- "$path/*.jar"
|