Jenkinsfile ignore 'localbat.sh' - execute steps directly in Jenkins' shell
This commit is contained in:
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user