
pipeline {
    agent any

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