2023-12-30 20:34:09 +00:00
|
|
|
pipeline {
|
|
|
|
|
agent any
|
|
|
|
|
stages {
|
|
|
|
|
stage('Gradle') {
|
|
|
|
|
steps {
|
2025-06-28 00:59:55 +00:00
|
|
|
withCredentials([usernamePassword(credentialsId: 'alttd-snapshot-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
2025-06-28 00:58:04 +00:00
|
|
|
sh '''
|
|
|
|
|
set +x
|
|
|
|
|
chmod +x gradlew
|
2025-06-28 01:01:02 +00:00
|
|
|
./gradlew build -PalttdSnapshotUsername=$USERNAME -PalttdSnapshotPassword=$PASSWORD
|
2025-06-28 00:58:04 +00:00
|
|
|
'''
|
|
|
|
|
}
|
2023-12-30 20:34:09 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('Archive') {
|
|
|
|
|
steps {
|
|
|
|
|
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('discord') {
|
|
|
|
|
steps {
|
|
|
|
|
discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-28 00:54:15 +00:00
|
|
|
}
|