mirror of
https://github.com/JasonHHouse/gaps.git
synced 2026-02-20 03:18:35 -06:00
28 lines
865 B
Groovy
28 lines
865 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Minify') {
|
|
steps {
|
|
sh 'npm install'
|
|
sh 'npm ci'
|
|
sh './minify'
|
|
}
|
|
}
|
|
stage('Build Jars') {
|
|
steps {
|
|
withSonarQubeEnv('SonarQube') {
|
|
sh 'mvn clean install pmd:pmd checkstyle:checkstyle spotbugs:spotbugs sonar:sonar'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
sh "curl -s -X POST https://api.telegram.org/bot1302374772:AAFdOH2GGdRsOxuBREQfKo9fU0IQNl6Q7sY/sendMessage -d chat_id=1041081317 -d text=\"SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})\""
|
|
}
|
|
|
|
failure {
|
|
sh "curl -s -X POST https://api.telegram.org/bot1302374772:AAFdOH2GGdRsOxuBREQfKo9fU0IQNl6Q7sY/sendMessage -d chat_id=1041081317 -d text=\"FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})\""
|
|
}
|
|
}
|
|
} |