18 lines
339 B
Groovy
18 lines
339 B
Groovy
node {
|
|
def app
|
|
|
|
stage('Clone repository') {
|
|
checkout scm
|
|
}
|
|
|
|
stage('Build image') {
|
|
app = docker.build("romanov73/is:ng-tracker-container-11")
|
|
}
|
|
|
|
stage('Test image') {
|
|
sh ./gradlew bootRun -Dng-tracker.check-run=true
|
|
app.inside {
|
|
sh 'echo "Tests passed"'
|
|
}
|
|
}
|
|
} |