Files
Thomas Philipona ab066158f1 Move to new Node
2019-10-07 08:32:31 +02:00

37 lines
1.4 KiB
Groovy

pipeline {
agent { label 'buildnode-cloud' }
environment {
JAVA_HOME = tool("jdk8_openjdk")
PATH = "${JAVA_HOME}/bin:${PATH}"
}
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
timeout(time: 30, unit: 'MINUTES')
}
triggers {
pollSCM('H/5 * * * *')
}
stages {
stage('Build') {
steps {
dir('websocket_bridge') {
sh 'rm -rf build'
sh './gradlew build'
archiveArtifacts 'build/libs/*.jar'
}
}
}
}
post {
success {
rocketSend avatar: 'https://chat.puzzle.ch/emoji-custom/success.png', channel: 'lightning_work', message: "Deployment success - Branch ${env.BRANCH_NAME} - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)", rawMessage: true
}
unstable {
rocketSend avatar: 'https://chat.puzzle.ch/emoji-custom/unstable.png', channel: 'lightning_work', message: "Deployment unstable - Branch ${env.BRANCH_NAME} - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)", rawMessage: true
}
failure {
rocketSend avatar: 'https://chat.puzzle.ch/emoji-custom/failure.png', channel: 'lightning_work', message: "Deployment failure - Branch ${env.BRANCH_NAME} - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)", rawMessage: true
}
}
}