generated from AriasCreations/vsmodtemplate
Copy build chain from Vintage Storage
This commit is contained in:
parent
c416e6e5e1
commit
f2a23552af
14 changed files with 125 additions and 51 deletions
44
Jenkinsfile
vendored
Normal file
44
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
pipeline {
|
||||
agent any
|
||||
options {
|
||||
buildDiscarder (
|
||||
logRotator (
|
||||
numToKeepStr: '5'
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage ("Build & Archive") {
|
||||
agent {
|
||||
label 'linux'
|
||||
}
|
||||
|
||||
steps {
|
||||
sh '''
|
||||
#!/bin/bash
|
||||
|
||||
git submodule update --init --recursive
|
||||
|
||||
update_vs_dotgame
|
||||
chmod +x build.sh
|
||||
|
||||
./build.sh
|
||||
'''
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: "Releases/*.zip"
|
||||
cleanWs()
|
||||
script {
|
||||
|
||||
if(env.DISCORD_URL != '') {
|
||||
discordSend customUsername: 'Jenkins', description: 'NOTICE: This is an automated development build and may not be stable. Use at your own risk.', enableArtifactsList: true, title: 'Arias Server Utils Build Results', webhookURL: env.DISCORD_URL
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue