Chat/Jenkinsfile

28 lines
817 B
Groovy

pipeline {
agent any
environment {
NEXUS_CREDS = credentials('alttd-snapshot-user')
}
stages {
stage('Gradle') {
steps {
sh """
./gradlew build \
-PalttdSnapshotUsername=$NEXUS_CREDS_USR \
-PalttdSnapshotPassword=$NEXUS_CREDS_PSW
"""
}
}
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
}
}
}
}