EpicEnchants/.gitlab-ci.yml

22 lines
563 B
YAML
Raw Normal View History

2019-04-05 16:22:11 +02:00
stages:
- build
variables:
name: "EpicVouchers"
path: "/builds/$CI_PROJECT_PATH"
version: "1.0.5-ALPHA"
build:
stage: build
image: maven:3.5.3-jdk-8
script:
2019-04-11 09:50:54 +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-04-05 16:22:11 +02:00
- mvn clean package
- find $path/ -depth -path '*original*' -delete
2019-04-11 10:36:03 +02:00
- mv $path/target/*.jar $path/
2019-04-05 16:22:11 +02:00
artifacts:
name: $name-$version
paths:
2019-04-11 10:25:55 +02:00
- "$path/*.jar"