retrocean/Jenkinsfile

23 lines
378 B
Groovy

#!/usr/bin/env groovy
pipeline {
agent { docker 'maven:3' }
options {
timeout(time: 1, unit: 'HOURS')
buildDiscarder(logRotator(numToKeepStr: '5'))
}
environment {
HOME = '$PWD'
}
stages {
stage('Build') {
steps {
sh 'mvn -B -U -e -DskipTests clean install'
}
}
}
}