Removed steps involving shell operations.
This commit is contained in:
parent
e897b43c4a
commit
5bf7dca8ea
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@ -14,12 +14,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'echo "eula=true" > eula.txt'
|
fileOperations([fileCreateOperation(fileContent: 'eula=true', fileName: 'eula.txt')])
|
||||||
sh "chmod u+x ./run_trial.sh"
|
pwsh returnStatus: true, script: '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"
|
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: '')])
|
||||||
sh 'echo "stop" | ./run_trial.sh'
|
pwsh 'echo "stop" | ./run_trial.sh'
|
||||||
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
logParser failBuildOnError: true, projectRulePath: 'Jenkinsparse', parsingRulesPath: 'Jenkinsparse', showGraphs: true, unstableOnWarning: true, useProjectRule: true
|
||||||
sh "rm mods/DynmapBlockScan.jar"
|
fileOperations([fileDeleteOperation(excludes: '', includes: 'mods/DynmapBlockScan.jar')])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("cleanup") {
|
stage("cleanup") {
|
||||||
@ -29,8 +29,8 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh "git clean -dfX"
|
pwsh "git clean -dfX"
|
||||||
sh "rm -rf world"
|
pwsh "rm -rf world"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("deploy") {
|
stage("deploy") {
|
||||||
@ -39,11 +39,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {
|
sshagent(['ce4c701d-098c-4706-8f32-c0af996a7769']) {
|
||||||
sh "ssh -o StrictHostKeyChecking=no gamehost@entertainment 'systemctl --user stop rsemcs'"
|
pwsh "ssh -o StrictHostKeyChecking=no gamehost@entertainment 'systemctl --user stop rsemcs'"
|
||||||
sh "rsync -a --update --exclude ./mods/ --exclude ./config/ ./** gamehost@entertainment:/home/gamehost/mcserver/"
|
pwsh "rsync -a --update --exclude ./mods/ --exclude ./config/ ./** gamehost@entertainment:/home/gamehost/mcserver/"
|
||||||
sh "rsync -a --update --delete ./mods/ gamehost@entertainment:/home/gamehost/mcserver/mods"
|
pwsh "rsync -a --update --delete ./mods/ gamehost@entertainment:/home/gamehost/mcserver/mods"
|
||||||
sh "rsync -a --update --delete ./config/ gamehost@entertainment:/home/gamehost/mcserver/config"
|
pwsh "rsync -a --update --delete ./config/ gamehost@entertainment:/home/gamehost/mcserver/config"
|
||||||
sh "ssh gamehost@entertainment 'systemctl --user start rsemcs'"
|
pwsh "ssh gamehost@entertainment 'systemctl --user start rsemcs'"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user