@Grab('org.yaml:snakeyaml:1.29')

pipeline {
    agent any

    stages {
        stage('Build') {
            steps {
                script {
                    def yaml = new Yaml()
                    def yamlFile = readFile('project.yaml')
                    def data = yaml.load(yamlFile)
                    echo "Building ${data.base.namespace} version ${data.version}"
                }
            }
        }
    }
}