added options and test push event webhook
This commit is contained in:
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user