From 503512272e96942c8cd74f59b70e31d9884935a4 Mon Sep 17 00:00:00 2001 From: Uwe Jakobeit Date: Mon, 30 Mar 2026 12:29:12 +0200 Subject: [PATCH] Jenkinsfile ignore 'localbat.sh' - execute steps directly in Jenkins' shell --- Jenkinsfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 84f0655..190a908 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,31 +1,31 @@ pipeline { agent any // Or use 'dockerfile' if running in a container stages { - stage('Checkout-Jenkinsfile') { - steps { - // Checks out the source code from the configured Gitea SCM - checkout scm - } - } - stage('Clean-Jenkinsfile') { + stage('Clean') { steps { - //sh 'rm -rf build' + sh 'rm -rf build' echo "Cleaning branch ${env.BRANCH_NAME}" } } stage('Configure') { steps { // Configure CMake to generate build files in the 'build' directory - //sh 'cmake -B build -S .' echo "Configure project" + sh 'mkdir build' + //sh 'cmake -B build -S .' } } stage('Build') { steps { // Build the project using the generated files - //sh 'cmake --build build' echo "Build project" - sh './localbuild.sh' + 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' } }