VintageStorage/Jenkinsfile

44 lines
No EOL
1.1 KiB
Groovy

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: 'Vintage Storage Build Results', webhookURL: env.DISCORD_URL
}
}
}
}
}
}
}