add Jenkinsfile for docker

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

21
Docker/Jenkinsfile vendored
View File

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