Skip to content

Instantly share code, notes, and snippets.

@unchama
Created May 11, 2019 12:48
Show Gist options
  • Save unchama/d7750b1a0a45c63a0067662e2eb3169f to your computer and use it in GitHub Desktop.
Save unchama/d7750b1a0a45c63a0067662e2eb3169f to your computer and use it in GitHub Desktop.
#!/bin/sh
# $1=ビルドバージョンの指定
LOGFILE="build-spigot_"`date '+%Y%m%d%H%M%S'`".log"
TARGETDIR="$1_"`date '+%Y%m%d%H%M%S'`
mkdir -p ./$TARGETDIR
cd ./$TARGETDIR
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar >>$LOGFILE 2>&1
java -jar BuildTools.jar --rev $1 >>$LOGFILE 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment