Jenkinsfile aktualisiert
This commit is contained in:
parent
677940aecd
commit
b115c9a011
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user