-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
39 lines (34 loc) · 806 Bytes
/
Jenkinsfile
File metadata and controls
39 lines (34 loc) · 806 Bytes
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
pipeline {
agent any
triggers {
pollSCM('')
githubPush()
}
options {
buildDiscarder(logRotator(numToKeepStr: '1'))
disableConcurrentBuilds()
timeout(time: 1, unit: 'HOURS')
retry(3)
}
tools {
jdk "jdk8"
}
stages {
stage("Build Nannoq-Tools") {
steps {
withCredentials([string(credentialsId: 'gpg-pass-nannoq', variable: 'TOKEN')]) {
script {
sh "./gradlew install -Dsigning.gnupg.passphrase=$TOKEN -Dorg.gradle.parallel=false -Pcentral --info --stacktrace"
}
}
}
}
}
post {
failure {
mail to: 'mikkelsen.anders@gmail.com',
subject: "Failed Pipeline: ${currentBuild.fullDisplayName}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}