17 lines
255 B
Groovy
17 lines
255 B
Groovy
node {
|
|
def app
|
|
|
|
stage('Clone repository') {
|
|
checkout scm
|
|
}
|
|
|
|
stage('Build image') {
|
|
app = docker.build("hellonode")
|
|
}
|
|
|
|
stage('Test image') {
|
|
app.inside {
|
|
sh 'echo "Tests passed"'
|
|
}
|
|
}
|
|
} |