19 lines
433 B
Groovy
19 lines
433 B
Groovy
node {
|
|
def app
|
|
stage('Clone repository') {
|
|
|
|
checkout scm
|
|
}
|
|
|
|
stage('Build image') {
|
|
|
|
app = docker.build("sparafinski/ium", "./Docker/")
|
|
}
|
|
|
|
stage('Test image') {
|
|
app.inside {
|
|
|
|
sh 'echo "Tests passed"'
|
|
}
|
|
}
|
|
} |