added options and test push event webhook

This commit is contained in:
2025-06-26 08:06:15 +02:00
parent 5a1cd22dc6
commit 35c5323a19

23
Jenkinsfile vendored
View File

@@ -6,7 +6,7 @@ pipeline {
} }
options { options {
buildDiscarder( buildDiscarder(
BuildHistoryManager([ BuildHistoryManager([
[ continueAfterMatch: false, matchAtMost: 5 ], [ continueAfterMatch: false, matchAtMost: 5 ],
[ actions: [ DeleteBuild() ] ] [ actions: [ DeleteBuild() ] ]
@@ -28,7 +28,6 @@ pipeline {
} }
} }
// stage('Build') { // stage('Build') {
// when { // when {
// branch 'development' // branch 'development'
@@ -38,16 +37,16 @@ pipeline {
// } // }
// } // }
// stage('Push image in gitea registry') { // stage('Push image in gitea registry') {
// steps { // steps {
// echo 'Start Pushing' // echo 'Start Pushing'
// script { // script {
// docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') { // docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
// docker.build('innohub/tatort-app').push('latest') // docker.build('innohub/tatort-app').push('latest')
// } // }
// } // }
// } // }
// } // }
} }
post { post {