Building with JDK8 in jenkins

This commit is contained in:
Ziver Koc 2016-12-19 16:16:39 +01:00
parent b38ffdc43d
commit e0f31027a4

5
Jenkinsfile vendored
View file

@ -1,7 +1,12 @@
// Jenkinsfile (Pipeline Script) // Jenkinsfile (Pipeline Script)
node { node {
// Select JDK8
env.JAVA_HOME = tool name: 'JDK8'
echo "JDK installation path is: ${env.JAVA_HOME}"
checkout scm checkout scm
stage('Build') { stage('Build') {
sh 'ant clean' sh 'ant clean'
sh 'ant build' sh 'ant build'