From eddb256009ca2b6fd6fda76132c1dca68f7627db Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 9 Apr 2023 11:13:07 +0200 Subject: [PATCH] Add a Jenkinsfile Signed-off-by: Username404 --- Jenkinsfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..72d015e --- /dev/null +++ b/Jenkinsfile @@ -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 + } + } + } + } +}