Rename JenkinsFile to Jenkinsfile
This commit is contained in:
26
Jenkinsfile
vendored
Normal file
26
Jenkinsfile
vendored
Normal 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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user