From ae78e9c97c738fc8b3a74f63c144785e64fc7149 Mon Sep 17 00:00:00 2001 From: zontreck Date: Thu, 20 Mar 2025 12:17:35 -0700 Subject: [PATCH] CI: add a jenkinsfile --- Jenkinsfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0847fef --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + options { + buildDiscarder(logRotator(numToKeepStr: '5')) + } + stages { + stage('Build') { + agent { + label 'linux' + } + steps { + echo 'Building..' + script { + sh ''' + #!/bin/bash + + chmod +x gradlew + ./gradlew clean build + ''' + } + } + + post { + always { + archiveArtifacts artifacts: 'build/libs/*.jar' + } + } + } + } +} \ No newline at end of file