Skip to content

Commit

Permalink
[build] Removed obsolete Slack notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
spoenemann committed Sep 5, 2017
1 parent 8350391 commit 79deee2
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
node {
try {
properties([
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '15']],
pipelineTriggers([cron('H 2 * * *')])
])

stage 'Checkout'
properties([
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '15']],
pipelineTriggers([cron('H 2 * * *')])
])

stage('Checkout') {
checkout scm

dir('build') { deleteDir() }
dir('.m2/repository/org/eclipse/xtext') { deleteDir() }
dir('.m2/repository/org/eclipse/xtend') { deleteDir() }

stage 'Maven Build'
}

stage('Maven Build') {
def workspace = pwd()
def mvnHome = tool 'M3'
def mvnHome = tool 'M3'
sh "${mvnHome}/bin/mvn -f releng --batch-mode --update-snapshots -fae -Dmaven.repo.local=${workspace}/.m2/repository clean install"
archive 'build/**'

slackSend "Build Succeeded - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
} catch (e) {
slackSend color: 'danger', message: "Build Failed - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
throw e
}

archive 'build/**'
}

0 comments on commit 79deee2

Please sign in to comment.