change jenkinsfile

This commit is contained in:
Maciej Czajka 2022-04-01 13:59:09 +02:00
parent ef5e18ea5e
commit 276bac1a82

View File

@ -1,13 +1,11 @@
pipeline { node {
agent { checkout scm
docker { image 'maciejczajka/ium:v1' } //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
stages { def testImage = docker.build("test-image")
stage('Test') {
steps { //Wszystkie polecenia poniżej wykonają się w kontenerze, z podmontowanym Workspace Jenkinsa
sh './download.sh' testImage.inside {
sh 'python3 ./Zajecia_2/main.py' sh './download.sh'
}
} }
}
} }