Update build system

This commit is contained in:
zontreck 2024-09-14 14:49:34 -07:00
parent b005eeb0fc
commit 6cec3dcbbc
8 changed files with 172 additions and 67 deletions

51
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,51 @@
pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage("Build on Linux") {
agent {
label 'linux'
}
tools {
jdk "jdk17"
}
steps {
script {
sh '''
#!/bin/bash
git clean -xfd
git reset --hard
git fetch
export JAVA_OPTS=-Dfile.encoding=UTF-8
java -version
chmod +x gradlew
./gradlew -Dorg.gradle.java.home="$JAVA_HOME" build publish
'''
}
}
post {
always {
archiveArtifacts artifacts: "build/libs/*.jar"
deleteDir()
}
}
}
}
}