Update Jenkinsfile3

This commit is contained in:
s464903 2024-03-30 11:16:59 +01:00
parent 2f50f8d1b8
commit 317896e141

View File

@ -30,6 +30,8 @@ pipeline {
def testImage = docker.build("test-image", "./Dockerfile")
}
}
stage('Run in container'){
docker.image('test-image').inside {
stage('Build') {
steps {
// Run the maven build
@ -40,8 +42,6 @@ pipeline {
}
}
}
stage('Run in container'){
docker.image('test-image').inside {
stage('Checkout') {
steps {
// Krok: Sklonowanie repozytorium git