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 {
agent { docker { image 'python:3.5.1' } }
stages {
stage('build') {
steps {
sh 'python --version'
}
node {
def app
stage('Clone repository') {
checkout scm
}
stage('Build image') {
app = docker.build("hellonode")
}
stage('Test image') {
app.inside {
sh 'echo "Tests passed"'
}
}
}