Files
BinderBeispielRegler/Jenkinsfile

41 lines
1.2 KiB
Groovy

pipeline {
agent any // Or use 'dockerfile' if running in a container
stages {
stage('Clean') {
steps {
sh 'rm -rf build'
echo "Cleaning branch ${env.BRANCH_NAME}"
}
}
stage('Configure') {
steps {
// Configure CMake to generate build files in the 'build' directory
echo "Configure project"
sh 'mkdir build'
//sh 'cmake -B build -S .'
}
}
stage('Build') {
steps {
// Build the project using the generated files
echo "Build project"
sh 'export Qt6Dir=$HOME/Qt/6.10.2/lib/cmake'
echo "See what's in the environment"
sh 'env'
sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release'
// echo "See localbuild says on the environment"
// sh './localbuild.sh'
}
}
stage('Test') {
steps {
// Run the executable to verify it works
//sh './build/hello_app'
echo "Test project"
}
}
}
}