2021-04-08 14:13:37 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2023-04-28 16:24:43 +02:00
|
|
|
environment {
|
|
|
|
JAVA_HOME='/usr/lib/jvm/temurin-17-jdk-amd64/'
|
|
|
|
}
|
2021-04-08 14:13:37 +02:00
|
|
|
|
2021-04-08 22:09:34 +02:00
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '48', artifactNumToKeepStr: '96'))
|
2021-04-09 20:58:29 +02:00
|
|
|
timeout(time: 12, unit: 'MINUTES')
|
2021-04-08 22:09:34 +02:00
|
|
|
}
|
2021-04-08 14:13:37 +02:00
|
|
|
triggers {
|
|
|
|
pollSCM('*/10 * * * *')
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2021-04-16 13:32:46 +02:00
|
|
|
echo 'Cleaning...'
|
|
|
|
sh './gradlew clean'
|
2021-04-08 14:13:37 +02:00
|
|
|
echo 'Building..'
|
2021-05-18 00:13:59 +02:00
|
|
|
sh './gradlew build --stacktrace -Dloom.refresh=true'
|
2021-04-08 14:13:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying....'
|
2021-04-16 13:19:04 +02:00
|
|
|
dir('remappedJars') {
|
2021-04-08 14:13:37 +02:00
|
|
|
archiveArtifacts artifacts:'*.jar', fingerprint: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|