-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Jenkinsfile
42 lines (35 loc) · 897 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
36
37
38
39
40
41
42
pipeline {
agent any
parameters {
string(
defaultValue: '',
name: 'TAG_NAME',
trim: true
)
}
tools {
jdk 'jdk-11'
}
environment {
MAVEN_USER = credentials("ossrh_user")
MAVEN_PASSWORD = credentials("ossrh_password")
SIGNING_PASSWORD = credentials("signing_password")
}
stages {
stage('Build') {
steps {
sh './gradlew clean build -Psigning.password=${SIGNING_PASSWORD} --stacktrace'
}
}
stage('Publish') {
steps {
sh './gradlew publish -Psigning.password=${SIGNING_PASSWORD} --no-daemon --no-parallel --stacktrace'
}
}
stage('Results') {
steps {
archiveArtifacts 'build/libs/*.jar'
}
}
}
}