-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathJenkinsfile
More file actions
42 lines (42 loc) · 753 Bytes
/
Jenkinsfile
File metadata and controls
42 lines (42 loc) · 753 Bytes
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
pipeline {
agent any
options {
timeout(time: 30, unit: 'MINUTES')
}
tools {
jdk 'jdk_8u144'
nodejs 'node_8.4.0'
}
stages {
stage('Prepare') {
steps {
sh 'chmod +x gradlew'
sh './gradlew setupCiWorkspace clean'
}
}
stage('Build') {
steps {
sh './gradlew build jar'
}
}
stage('Run Server Test') {
steps {
dir('serverTest') {
sh 'npm install'
sh 'npm start'
}
}
post {
always {
archiveArtifacts 'run/logs/fml-server-latest.log'
}
}
}
stage('Archive') {
steps {
archiveArtifacts 'build/libs/*.jar'
fingerprint 'build/libs/*.jar'
}
}
}
}