-
Notifications
You must be signed in to change notification settings - Fork 3
/
Jenkinsfile
45 lines (37 loc) · 1.04 KB
/
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
43
pipeline {
agent any
stages {
stage("Clean") {
steps {
sh "./gradlew clean"
}
}
stage("Assemble") {
steps {
sh "./gradlew assemble"
}
}
stage('Publish Jars & Amps') {
when {
anyOf {
branch "master*"
branch "release*"
}
}
environment {
SONNATYPE_CREDENTIALS = credentials('sonatype')
GPGPASSPHRASE = credentials('gpgpassphrase')
}
steps {
script {
sh "./gradlew publish -Pde_publish_username=${SONNATYPE_CREDENTIALS_USR} -Pde_publish_password=${SONNATYPE_CREDENTIALS_PSW} -PkeyId=DF8285F0 -Ppassword=${GPGPASSPHRASE} -PsecretKeyRingFile=/var/jenkins_home/secring.gpg"
}
}
}
}
post {
success {
archiveArtifacts artifacts: '**/build/dist/*.amp'
}
}
}