forked from bitbar/testdroid-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
35 lines (33 loc) · 1.28 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
#!/usr/bin/env groovy
@Library('CloudOrchestrationLibrary')
import com.bitbar.Github
node('linux && maven && gpg') {
ansiColor('xterm') {
stage('Checkout') {
checkout([
$class : 'GitSCM',
branches : [
[
name: 'master'
]
],
userRemoteConfigs: [
[
credentialsId: 'f652697e-beb7-4724-b1b5-4913a2bf45f5',
url : '[email protected]:bitbar/testdroid-api.git'
]
]
])
}
stage('Deploy') {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
script {
def version = sh(returnStdout: true, script: 'mvn help:evaluate -Dexpression=project.version -q -DforceStdout')
def gh = new Github(this, 'testdroid-api', 'bitbar')
gh.release('master', 'v' + version, "Version ${version}")
sh('mvn clean package source:jar javadoc:jar gpg:sign nexus-staging:deploy')
}
}
}
}
}