2019-11-23 17:38:53 +01:00
|
|
|
node {
|
|
|
|
def app
|
|
|
|
|
|
|
|
stage('Clone repository') {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Build image') {
|
2019-11-23 17:50:02 +01:00
|
|
|
app = docker.build("hellonode")
|
2019-11-23 17:38:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
stage('Test image') {
|
|
|
|
app.inside {
|
|
|
|
sh 'echo "Tests passed"'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|