Skip to content

Commit

Permalink
jenkins file added
Browse files Browse the repository at this point in the history
  • Loading branch information
zubri committed Aug 11, 2023
1 parent 7128536 commit 2470ba5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
pipeline {
agent any
tools {
jdk "${params.JDK_TOOL}"
}
stages {
stage ('Clone') {
steps {
catchError(buildResult: 'FAILURE') {
checkout([
$class: 'GitSCM',
userRemoteConfigs: [[credentialsId: CREDENTIALS_ID, url: '[email protected]:prowide/prowide-core.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!")
}
}
}
}

0 comments on commit 2470ba5

Please sign in to comment.