2024-08-04 20:28:28 +00:00
|
|
|
pipeline {
|
|
|
|
|
agent any
|
2025-06-20 20:50:59 +00:00
|
|
|
environment {
|
|
|
|
|
NEXUS_CREDS = credentials('alttd-snapshot-user')
|
|
|
|
|
}
|
2024-08-04 20:28:28 +00:00
|
|
|
stages {
|
|
|
|
|
stage('Gradle') {
|
|
|
|
|
steps {
|
2025-06-20 20:53:03 +00:00
|
|
|
sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
|
2024-08-04 20:28:28 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('Archive') {
|
|
|
|
|
steps {
|
|
|
|
|
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('discord') {
|
|
|
|
|
steps {
|
2025-06-20 20:46:59 +00:00
|
|
|
discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook
|
2024-08-04 20:28:28 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-20 20:34:40 +00:00
|
|
|
}
|