Jenkinsfile aktualisiert

This commit is contained in:
dresi 2025-11-03 17:50:54 +01:00
parent 677940aecd
commit b115c9a011

27
Jenkinsfile vendored
View File

@ -1,30 +1,9 @@
pipeline { pipeline {
agent any agent { docker { image 'maven:3.9.11-eclipse-temurin-21-alpine' } }
stages { stages {
stage('Checkout') { stage('build') {
steps { steps {
git branch: 'main', url: 'https://git.dresi.wtf/dresi/rsyncd-docker.git' sh 'mvn --version'
}
}
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()
}
}
} }
} }
} }