add Jenkinsfile for docker

This commit is contained in:
s444018 2022-03-30 09:12:46 +02:00
parent e0883e654e
commit 01717da2d9

27
Docker/Jenkinsfile vendored
View File

@ -1,10 +1,19 @@
pipeline { node {
agent { dockerfile true } def app
stages { stage('Clone repository') {
stage('Launch Docker') {
steps { checkout scm
sh 'ls -la' }
}
} stage('Build image') {
}
app = docker.build("sparafinski/ium")
}
stage('Test image') {
app.inside {
sh 'echo "Tests passed"'
}
}
} }