-
Notifications
You must be signed in to change notification settings - Fork 64
/
Jenkinsfile
34 lines (34 loc) · 1.01 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
pipeline {
agent any
tools {
jdk "${params.JDK_TOOL}"
}
stages {
stage ('Clone') {
steps {
catchError(buildResult: 'FAILURE') {
checkout([
$class: 'GitSCM',
userRemoteConfigs: [[credentialsId: CREDENTIALS_ID, url: 'https://github.com/prowide/prowide-iso20022.git']],
branches: [[name: CHECKOUT_BRANCH]]
])
}
}
}
stage('Build') {
steps {
catchError(buildResult: 'FAILURE') {
sh 'java -version'
sh './gradlew clean build --no-daemon --max-workers 2'
}
}
}
}
post {
failure {
script {
slackSend(channel: "#jenkins-integrator", token: "${params.SLACK_TOKEN}", color: 'danger', message: "Pipeline: ${currentBuild.fullDisplayName} failed!")
}
}
}
}