It doesn't work that way either

This commit is contained in:
Norbi Peti 2017-06-26 17:35:46 +02:00 committed by GitHub
parent d6c3ec7c7e
commit c2d13a5fc8

View file

@ -1,10 +1,11 @@
cache: cache:
directories: directories:
- $HOME/.m2/repository/org/bukkit/craftbukkit - $HOME/.m2/repository/org/bukkit/craftbukkit
before_install: # Wget BuildTools and run if cached folder not found before_install: | # Wget BuildTools and run if cached folder not found
- if [ -d "$HOME/.m2/repository/org/bukkit/craftbukkit" ]; then exit 0; fi if [ ! -d "$HOME/.m2/repository/org/bukkit/craftbukkit/1.12-R0.1-SNAPSHOT" ]; then
- wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
- java -jar BuildTools.jar java -jar BuildTools.jar --rev 1.12
fi
language: java language: java
jdk: jdk: