diff --git a/.jenkinsfile b/.jenkinsfile index cab68a9..ee4655a 100644 --- a/.jenkinsfile +++ b/.jenkinsfile @@ -1,6 +1,11 @@ pipeline { - agent { - docker { image 'archlinux:base-devel' } + agent any + options { + timeout(time: 30, unit: 'MINUTES') + disableConcurrentBuilds abortPrevious: true + } + triggers { + cron(env.BRANCH_NAME == 'main' || env.BRANCH_NAME == 'develop' ? '0 21 * * *' : '') } environment { REGISTRY_ADDRESS = "gitea.atria-soft.org" @@ -20,6 +25,11 @@ pipeline { sh 'javac --version' } } + stage('(prod) Build') { + steps { + sh 'mvn install' + } + } } }