-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
31 lines (30 loc) · 763 Bytes
/
Jenkinsfile
File metadata and controls
31 lines (30 loc) · 763 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
pipeline {
agent {
docker { image 'openjdk:14-jdk' }
}
stages {
stage('Setup') {
steps {
sh 'chmod +x gradlew'
sh './gradlew updateLicenses'
}
}
stage('Test') {
steps {
sh './gradlew test'
junit 'build/test-results/**/*.xml'
}
}
stage('Build') {
environment {
REG_CREDS = credentials("nexus")
GIT_HASH = GIT_COMMIT.take(7)
}
steps {
sh './gradlew build'
sh './gradlew publish'
archiveArtifacts artifacts: 'build/libs/*.jar', fingerprint: true
}
}
}
}