diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..188bff2 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,31 @@ +```groovy +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + checkout scm + } + } + + stage('Build') { + steps { + sh ''' + echo "Building project..." + mkdir -p build + g++ main.cpp -o build/test_app + ''' + } + } + + stage('Run') { + steps { + sh ''' + ./build/test_app + ''' + } + } + } +} +```