2021-04-08 14:13:37 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
2021-04-08 22:09:34 +02:00
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '48', artifactNumToKeepStr: '96'))
|
|
|
|
timeout(time: 8, unit: 'MINUTES')
|
|
|
|
}
|
2021-04-08 14:13:37 +02:00
|
|
|
triggers {
|
|
|
|
pollSCM('*/10 * * * *')
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building..'
|
2021-04-08 15:43:43 +02:00
|
|
|
sh './gradlew build --stacktrace'
|
2021-04-08 14:13:37 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying....'
|
|
|
|
dir('remappedJars') {
|
|
|
|
archiveArtifacts artifacts:'*.jar', fingerprint: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|