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 {
|
pipeline {
|
||||||
agent any // Or use 'dockerfile' if running in a container
|
agent any // Or use 'dockerfile' if running in a container
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout-Jenkinsfile') {
|
stage('Clean') {
|
||||||
steps {
|
|
||||||
// Checks out the source code from the configured Gitea SCM
|
|
||||||
checkout scm
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Clean-Jenkinsfile') {
|
|
||||||
steps {
|
steps {
|
||||||
//sh 'rm -rf build'
|
sh 'rm -rf build'
|
||||||
echo "Cleaning branch ${env.BRANCH_NAME}"
|
echo "Cleaning branch ${env.BRANCH_NAME}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Configure') {
|
stage('Configure') {
|
||||||
steps {
|
steps {
|
||||||
// Configure CMake to generate build files in the 'build' directory
|
// Configure CMake to generate build files in the 'build' directory
|
||||||
//sh 'cmake -B build -S .'
|
|
||||||
echo "Configure project"
|
echo "Configure project"
|
||||||
|
sh 'mkdir build'
|
||||||
|
//sh 'cmake -B build -S .'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
// Build the project using the generated files
|
// Build the project using the generated files
|
||||||
//sh 'cmake --build build'
|
|
||||||
echo "Build project"
|
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