Added ps1 script for running server, removed dependency on .sh script.

This commit is contained in:
Harrison Deng 2022-05-17 13:04:59 -05:00
parent 25a7681918
commit adbb204ef5
2 changed files with 3 additions and 3 deletions

5
Jenkinsfile vendored
View File

@ -15,9 +15,8 @@ pipeline {
}
steps {
fileOperations([fileCreateOperation(fileContent: 'eula=true', fileName: 'eula.txt')])
pwsh returnStatus: true, script: 'chmod u+x ./run_trial.sh'
fileOperations([fileDownloadOperation(password: '', proxyHost: '', proxyPort: '', targetFileName: 'DynmapBlockScan.jar', targetLocation: 'mods/', url: 'https://github.com/webbukkit/DynmapBlockScan/releases/download/v3.4-beta-1/DynmapBlockScan-3.4-beta-1-forge-1.18.jar', userName: '')])
pwsh 'echo "stop" | ./run_trial.sh'
pwsh returnStatus: true, script: 'echo "stop" | java -Xmx4G @libraries/net/minecraftforge/forge/1.18.2-40.1.19/unix_args.txt'
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
fileOperations([fileDeleteOperation(excludes: '', includes: 'mods/DynmapBlockScan.jar')])
}
@ -30,7 +29,7 @@ pipeline {
}
steps {
pwsh "git clean -dfX"
pwsh "rm -rf world"
fileOperations([folderDeleteOperation('world')])
}
}
stage("deploy") {

1
run.ps1 Normal file
View File

@ -0,0 +1 @@
java "@user_jvm_args.txt" "@libraries/net/minecraftforge/forge/1.18.2-40.1.19/unix_args.txt" $args