Add a Jenkinsfile

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2023-04-09 11:13:07 +02:00
parent 9789e81ec1
commit eddb256009
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 32 additions and 0 deletions

32
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,32 @@
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '2', artifactNumToKeepStr: '4'))
timeout(time: 5, unit: 'MINUTES')
}
triggers {
pollSCM('*/10 * * * *')
}
stages {
stage('Build') {
steps {
withGradle {
echo 'Cleaning...'
sh './gradlew clean'
sh './gradlew kotlinUpgradeYarnLock'
echo 'Building..'
sh './gradlew browserProductionWebpack'
}
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
dir('compiledOutput') {
archiveArtifacts artifacts:'*.html, *.js, *.js.map', fingerprint: false
}
}
}
}
}