-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile-ant
72 lines (62 loc) · 1.33 KB
/
Jenkinsfile-ant
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env groovy
// This Jenkinsfile is for building ExtendJ with Ant.
// Both the Ant and Gradle builds are continuously tested.
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
}
tools {
jdk 'oracle-jdk-6'
ant 'ant-1.8.4'
}
triggers {
pollSCM('H/10 * * * *')
}
stages {
stage('ExtendJ4') {
steps {
sh 'ant clean java4-frontend jar'
sh 'ant clean java4 jar'
sh 'cp extendj.jar java4'
}
}
stage('ExtendJ5') {
steps {
sh 'ant clean java5-frontend jar'
sh 'ant clean java5 jar'
sh 'cp extendj.jar java5'
}
}
stage('ExtendJ6') {
steps {
sh 'ant clean java6-frontend jar'
sh 'ant clean java6 jar'
sh 'cp extendj.jar java6'
}
}
stage('ExtendJ7') {
steps {
sh 'ant clean java7-frontend jar'
sh 'ant clean java7 jar'
sh 'cp extendj.jar java7'
}
}
stage('ExtendJ8') {
steps {
sh 'ant clean java8-frontend jar'
sh 'ant clean java8 jar'
sh 'cp extendj.jar java8'
}
}
}
post {
always {
archive 'java4/extendj.jar'
archive 'java5/extendj.jar'
archive 'java6/extendj.jar'
archive 'java7/extendj.jar'
archive 'java8/extendj.jar'
}
}
}