-
Notifications
You must be signed in to change notification settings - Fork 4
/
Jenkinsfile
36 lines (35 loc) · 950 Bytes
/
Jenkinsfile
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
pipeline {
agent any
options {
buildDiscarder(logRotator(artifactNumToKeepStr: '1', numToKeepStr: ''))
}
stages {
stage ('SCM'){
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: scm.extensions + [[$class: 'SubmoduleOption', disableSubmodules: false, recursiveSubmodules: true, reference: '', trackingSubmodules: false, parentCredentials: true]],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs])
}
}
stage('Clean') {
steps {
sh './gradlew --build-cache --parallel clean'
}
}
stage('Build') {
steps {
sh './gradlew --build-cache --parallel build buildDist'
}
}
}
post {
always {
junit allowEmptyResults: true, testResults: '**/target/test-results/test/TEST-*.xml'
archive '.dist/**/*'
}
}
}