From 26f952d7faceca23ccad70022357765f6b4d8a74 Mon Sep 17 00:00:00 2001 From: Esophose Date: Fri, 12 Apr 2019 22:09:25 -0600 Subject: [PATCH] Update .gitlab-ci.yml Update .gitlab-ci.yml Update .gitlab-ci.yml Update .gitlab-ci.yml Version Update .gitlab-ci.yml Update .gitlab-ci.yml --- .gitlab-ci.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 53ca8cc3..09acf950 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,21 @@ stages: -- build + - build variables: - name: "FabledSkyBlock" - path: "/builds/Songoda/SkyBlock/" - version: "Build-72" + name: "FabledSkyBlock" + path: "/builds/$CI_PROJECT_PATH" + version: "Build-73" build: stage: build 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 - - find $path -type f -name "*.yml" -print0 | xargs -0 sed -i -e s/maven-version-number/$version/g + - 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 - mvn clean package + - find $path/ -depth -path '*original*' -delete + - mv $path/target/*.jar $path/ artifacts: name: $name-$version paths: - - "$path/target/*.jar" \ No newline at end of file + - "$path/*.jar"