Zaktualizuj 'Jenkinsfile'

This commit is contained in:
Klaudia Kandulska 2020-12-03 13:55:48 +01:00
parent 31aeba028d
commit a429ea870e

21
Jenkinsfile vendored
View File

@ -1,10 +1,17 @@
pipeline { node {
agent { docker { image 'python:3.5.1' } } def app
stages {
stage('build') { stage('Clone repository') {
steps { checkout scm
sh 'python --version' }
}
stage('Build image') {
app = docker.build("hellonode")
}
stage('Test image') {
app.inside {
sh 'echo "Tests passed"'
} }
} }
} }