From 1fa6010d019ff365174db48aa23c26255a225e94 Mon Sep 17 00:00:00 2001 From: Flare Microsystems Date: Fri, 8 Nov 2024 12:48:10 -0800 Subject: [PATCH] Add jenkinsfile --- JenkinsFile | 26 ++++++++++++++++++++++++++ manifest.txt | 1 + 2 files changed, 27 insertions(+) create mode 100644 JenkinsFile create mode 100644 manifest.txt diff --git a/JenkinsFile b/JenkinsFile new file mode 100644 index 0000000..eb567e4 --- /dev/null +++ b/JenkinsFile @@ -0,0 +1,26 @@ +pipeline { + agent any + stages { + stage('Compile'){ + steps { + sh "mkdir -p bin" + sh "/tool/jdk1.6.0_45/bin/javac -target 1.5 -cp ./Lib/lwjgl.jar:./Lib/jinput.jar:./Lib/lwjgl_util.jar -d bin \$(find ./src/* | grep .java)" + } + } + stage('Package'){ + steps { + sh "echo $MANIFEST" + sh "echo $MANIFEST > manifest.txt" + dir("bin") + { + sh "/tool/jdk1.6.0_45/bin/jar cvfm ../CrossJeeves.jar ../manifest.txt ." + } + } + }ge('Archive Artifacts') + { + steps{ + archiveArtifacts artifacts: 'CrossJeeves.jar' + } + } + } +} diff --git a/manifest.txt b/manifest.txt new file mode 100644 index 0000000..f9e05b4 --- /dev/null +++ b/manifest.txt @@ -0,0 +1 @@ +Main-Class: com.flaremicro.crossjeeves.CrossJeevesMain