diff --git a/Jenkinsfile b/Jenkinsfile index 0e1ba69..3859843 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,30 +1,9 @@ pipeline { - agent any + agent { docker { image 'maven:3.9.11-eclipse-temurin-21-alpine' } } stages { - stage('Checkout') { + stage('build') { steps { - git branch: 'main', url: 'https://git.dresi.wtf/dresi/rsyncd-docker.git' - } - } - stage('Build') { - steps { - script { - dockerImage = docker.build("dresi/rsyncd-docker:${env.BUILD_NUMBER}") - } - } - } - stage('Test') { - steps { - sh 'docker run --rm dresi/rsyncd-docker:${env.BUILD_NUMBER} date' - } - } - stage('Push') { - steps { - script { - docker.withRegistry('https://harbor.lan/v1/', 'jenkins-harbor') { - dockerImage.push() - } - } + sh 'mvn --version' } } }