31 lines
543 B
Groovy
31 lines
543 B
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
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|