Jenkinsfile ignore 'localbat.sh' - execute steps directly in Jenkins' shell

This commit is contained in:
Uwe Jakobeit
2026-03-30 12:29:12 +02:00
parent 3dee24cdfc
commit 503512272e

22
Jenkinsfile vendored
View File

@@ -1,31 +1,31 @@
pipeline {
agent any // Or use 'dockerfile' if running in a container
stages {
stage('Checkout-Jenkinsfile') {
stage('Clean') {
steps {
// Checks out the source code from the configured Gitea SCM
checkout scm
}
}
stage('Clean-Jenkinsfile') {
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'
}
}