Add jenkinsfile

This commit is contained in:
Flare Microsystems
2024-11-08 12:48:10 -08:00
parent 71d118f160
commit 1fa6010d01
2 changed files with 27 additions and 0 deletions

26
JenkinsFile Normal file
View File

@@ -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'
}
}
}
}