pipeline {
    agent any
    stages {
        stage ('scm checkout') {
            steps {
                checkout scm
            }
        }
        stage ('primul job') {
            steps {
                sh 'pwd'
                sh 'echo "Hello! Bine ai venit la It_School Jenkins startup!" > jenkins.txt'
                sh 'ls -alh'
            }
        }
        stage ('job doi') {
            steps {
                script {
                    def Age=21
                    echo "I have ${Age} years old"
                }
            }
        }
    }
}