-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
34 lines (31 loc) · 886 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
pipeline {
agent {
node {
label 'lang:java && java:11'
}
}
environment {
GRADLE_OPTS = '-Dorg.gradle.daemon=false'
}
stages {
stage('Initialize project...') {
steps {
echo 'Set build script permissions...'
sh "chmod +x ./gradlew"
echo 'Check build script status...'
sh './gradlew --version'
echo 'Check passed.'
}
}
stage('Build project') {
steps {
echo 'Building..'
sh "./gradlew build"
echo 'Collection component...'
archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true
archiveArtifacts artifacts: 'build/distributions/**'
echo 'Build succeed.'
}
}
}
}