execute tests in test stage; clean-up

This commit is contained in:
Uwe Jakobeit
2026-03-30 14:59:51 +02:00
parent aa62bed1b7
commit 0a49237838

16
Jenkinsfile vendored
View File

@@ -1,8 +1,5 @@
pipeline { pipeline {
agent any // Or use 'dockerfile' if running in a container agent any // Or use 'dockerfile' if running in a container
// environment {
// Qt6_DIR='/home/k4/Qt/6.10.2/gcc_64/lib/cmake/Qt6'
// }
stages { stages {
stage('Clean') { stage('Clean') {
steps { steps {
@@ -15,7 +12,6 @@ pipeline {
// Configure CMake to generate build files in the 'build' directory // Configure CMake to generate build files in the 'build' directory
echo "Configure project" echo "Configure project"
sh 'mkdir build' sh 'mkdir build'
//sh 'cmake -B build -S .'
} }
} }
stage('Build') { stage('Build') {
@@ -23,25 +19,15 @@ pipeline {
steps { steps {
// Build the project using the generated files // Build the project using the generated files
echo "Build project" echo "Build project"
// sh 'export Qt6Dir=/home/k4/Qt/6.10.2/lib/cmake'
echo "See what's in the environment"
echo "Qt Dir is ${Qt6_DIR}"
sh 'ls -l ${Qt6_DIR}'
// sh "export Qt6_DIR='/home/k4/Qt/6.10.2/gcc_64/lib/cmake/Qt6'"
// sh "env | grep Qt"
// sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DQt6_DIR=/home/k4/Qt/6.10.2/gcc_64/lib/cmake/Qt6'
// sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release '
// echo "See localbuild says on the environment"
sh './localbuild.sh' sh './localbuild.sh'
} }
} }
stage('Test') { stage('Test') {
steps { steps {
// Run the executable to verify it works // Run the executable to verify it works
//sh './build/hello_app'
echo "Test project" echo "Test project"
sh 'tests/tests'
} }
} }
} }