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"'