diff --git a/Jenkinsfile b/Jenkinsfile index 7ce4216..843cdb3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" diff --git a/run_trial.sh b/run_trial.sh new file mode 100755 index 0000000..734d2e0 --- /dev/null +++ b/run_trial.sh @@ -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 "$@"