-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
30 lines (29 loc) · 956 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
pipeline {
agent none
stages {
stage('Build') {
agent {
label "linux"
}
environment {
srcDir = pwd()
}
steps {
sh './scripts/ci.sh build'
}
}
stage('Deploy') {
agent {
label "linux"
}
steps {
withCredentials([string(credentialsId: "android_signing_key", variable: "SIGNING_KEY_BASE64"),
string(credentialsId: "android_signing_key_password", variable: "SIGNING_PASSWORD"),
string(credentialsId: "sonatype_ossrh_username", variable: "OSSRH_USERNAME"),
string(credentialsId: "sonatype_ossrh_password", variable: "OSSRH_PASSWORD")]) {
sh './scripts/ci.sh publish'
}
}
}
}
}