node {
    def app

    stage('Clone repository') {
        checkout scm
    }

    agent { docker { image 'python:3.9.0' } }
    stages {
        stage('build') {
            steps {
                sh 'python --version'
            }
        }
    }
}

    stage('Test image') {
        app.inside {
            sh 'echo "Passed"'
        }
    }
}