pipeline { agent any stages { stage('Build') { steps { sh ''' echo "Building project..." mkdir -p build g++ main.cpp -o build/test_app ''' } } stage('Run') { steps { sh ''' ./build/test_app ''' } } stage('Archive') { steps { archiveArtifacts artifacts: 'build/**', fingerprint: true } } } }