Set up trial run script.

This commit is contained in:
Harrison Deng 2022-05-13 16:50:40 -05:00
parent ff8928f62d
commit 6f43e0fa37
2 changed files with 8 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -4,10 +4,10 @@ pipeline {
stage("server trial") {
steps {
sh 'echo "eula=true" > eula.txt'
sh "chmod u+x ./run.sh"
sh "chmod u+x ./run_trial.sh"
sh "curl -o mods/DynmapBlockScan.jar -LJR https://github.com/webbukkit/DynmapBlockScan/releases/download/v3.4-beta-1/DynmapBlockScan-3.4-beta-1-forge-1.18.jar"
lock('Port 25565') {
sh 'echo "stop" | ./run.sh'
sh 'echo "stop" | ./run_trial.sh'
}
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
sh "rm mods/DynmapBlockScan.jar"

6
run_trial.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env sh
# Forge requires a configured set of both JVM and program arguments.
# Add custom JVM arguments to the user_jvm_args.txt
# Add custom program arguments {such as nogui} to this file in the next line before the "$@" or
# pass them to this script directly
java -Xmx4G @libraries/net/minecraftforge/forge/1.18.2-40.1.19/unix_args.txt "$@"