2024-08-04 20:28:28 +00:00
|
|
|
pipeline {
|
|
|
|
|
agent any
|
|
|
|
|
stages {
|
|
|
|
|
stage('Gradle') {
|
|
|
|
|
steps {
|
2025-06-20 20:34:40 +00:00
|
|
|
withCredentials([usernamePassword(credentialsId: 'my-credentials-id', usernameVariable: 'NEXUS_USERNAME', passwordVariable: 'NEXUS_PASSWORD')]) {
|
|
|
|
|
sh """
|
|
|
|
|
./gradlew build \
|
|
|
|
|
-PalttdSnapshotUsername=$NEXUS_USERNAME \
|
|
|
|
|
-PalttdSnapshotPassword=$NEXUS_PASSWORD
|
|
|
|
|
"""
|
|
|
|
|
}
|
2024-08-04 20:28:28 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('Archive') {
|
|
|
|
|
steps {
|
|
|
|
|
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
stage('discord') {
|
|
|
|
|
steps {
|
2025-06-20 20:34:40 +00:00
|
|
|
discordSend
|
2025-06-20 20:45:53 +00:00
|
|
|
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
|
|
|
}
|