symfonyAppPipeline: fix hook stages
This commit is contained in:
parent
ff382b25ba
commit
a6b8706753
|
@ -6,12 +6,8 @@ def call(String baseImage = 'ubuntu:22.04') {
|
||||||
checkout(scm)
|
checkout(scm)
|
||||||
}
|
}
|
||||||
stage('Run pre hooks') {
|
stage('Run pre hooks') {
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
hook('pre-symfony-app')
|
hook('pre-symfony-app')
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Run in Symfony image') {
|
stage('Run in Symfony image') {
|
||||||
def symfonyImage = buildDockerImage(baseImage)
|
def symfonyImage = buildDockerImage(baseImage)
|
||||||
symfonyImage.inside() {
|
symfonyImage.inside() {
|
||||||
|
@ -91,14 +87,10 @@ def call(String baseImage = 'ubuntu:22.04') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Run post hooks') {
|
stage('Run post hooks') {
|
||||||
steps {
|
|
||||||
script {
|
|
||||||
hook('post-symfony-app')
|
hook('post-symfony-app')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
def buildDockerImage(String baseImage) {
|
def buildDockerImage(String baseImage) {
|
||||||
def imageName = 'cadoles-symfony-ci'
|
def imageName = 'cadoles-symfony-ci'
|
||||||
|
|
Loading…
Reference in New Issue