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'))
|
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 {
|
|
|
|
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....'
|
2021-04-16 13:19:04 +02:00
|
|
|
dir('remappedJars') {
|
|
|
|
zip zipFile: './UnoptimizedJars.zip', archive: true, glob: '*.jar'
|
|
|
|
}
|
2021-04-14 13:56:20 +02:00
|
|
|
dir('shrinkedJars') {
|
2021-04-08 14:13:37 +02:00
|
|
|
archiveArtifacts artifacts:'*.jar', fingerprint: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|