Update Jenkinsfile3

This commit is contained in:
s464903 2024-03-30 11:13:58 +01:00
parent d82f45e1ee
commit 2f50f8d1b8
1 changed files with 2 additions and 0 deletions

View File

@ -23,10 +23,12 @@ pipeline {
stages {
stage('Build image'){
steps{
checkout scm
//Pierwszy argument to tag, który zostania nadany zbudowanemu obrazowi
//Jeśli chcemy użyć Dockerfile z innej ścieżki niż ./Dockerfile, możemy ją podać jako drugi argument
def testImage = docker.build("test-image", "./Dockerfile")
}
}
stage('Build') {
steps {