Skip to content

Commit d20e30b

Browse files
committed
Move "post" step to within the stage in JPA 3.2 TCK Jenkinsfile
Because the node is only active during that stage, not during the whole pipeline.
1 parent 88833b5 commit d20e30b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

ci/jpa-3.2-tck.Jenkinsfile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,24 @@ pipeline {
176176
}
177177
}
178178
}
179+
post {
180+
always {
181+
script {
182+
def containerName
183+
if ( params.RDBMS == 'postgresql' ) {
184+
containerName = 'postgres'
185+
}
186+
else {
187+
containerName = params.RDBMS
188+
}
189+
sh "docker rm -f ${containerName}"
190+
}
191+
}
192+
}
179193
}
180194
}
181195
post {
182196
always {
183-
script {
184-
def containerName
185-
if ( params.RDBMS == 'postgresql' ) {
186-
containerName = 'postgres'
187-
}
188-
else {
189-
containerName = params.RDBMS
190-
}
191-
sh "docker rm -f ${containerName}"
192-
}
193197
configFileProvider([configFile(fileId: 'job-configuration.yaml', variable: 'JOB_CONFIGURATION_FILE')]) {
194198
195199
}

0 commit comments

Comments
 (0)