forked from bitbar/android-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
25 lines (23 loc) · 894 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
node("gpg") {
ansiColor("xterm") {
stage('Checkout') {
checkout([
$class : 'GitSCM',
userRemoteConfigs: [[credentialsId: 'f652697e-beb7-4724-b1b5-4913a2bf45f5',
url : '[email protected]:bitbar/android-gradle-plugin.git']]
])
}
stage('Build') {
sh "./gradlew clean build"
}
stage('Archive artifacts') {
archiveArtifacts "build/libs/*.jar"
}
stage("deploy") {
withCredentials([usernamePassword(credentialsId:'b06e9466-56dc-4bdd-8fa7-d5c3112c937a',
passwordVariable: 'osspasswd', usernameVariable: 'ossusername')]) {
sh "./gradlew -PsonatypeUsername=$ossusername -PsonatypePassword=$osspasswd uploadArchives"
}
}
}
}