Jenkinsfile - set 'Qt6 installation dir'... still
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -4,3 +4,5 @@ CMakeFiles/
|
|||||||
*.zip
|
*.zip
|
||||||
*.user
|
*.user
|
||||||
app/.qtcreator/CMakeLists.txt.user
|
app/.qtcreator/CMakeLists.txt.user
|
||||||
|
*.*swp
|
||||||
|
|
||||||
|
|||||||
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -1,5 +1,8 @@
|
|||||||
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 {
|
||||||
@@ -16,15 +19,14 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
environment {
|
|
||||||
Qt6Dir=/home/k4/Qt/6.10.2/lib/cmake
|
|
||||||
}
|
|
||||||
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'
|
// sh 'export Qt6Dir=/home/k4/Qt/6.10.2/lib/cmake'
|
||||||
echo "See what's in the environment"
|
echo "See what's in the environment"
|
||||||
sh "env | grep Qt"
|
echo "Qt Dir is ${Qt6_DIR}"
|
||||||
|
// sh "env | grep Qt"
|
||||||
sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release'
|
sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release'
|
||||||
|
|
||||||
// echo "See localbuild says on the environment"
|
// echo "See localbuild says on the environment"
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
rm -r build
|
rm -r build
|
||||||
|
|
||||||
# enable CMake to find Qt6
|
# enable CMake to find Qt6
|
||||||
Qt6Dir=$HOME/Qt/6.10.2/lib/cmake
|
export Qt6_DIR=$HOME/Qt/6.10.2/gcc_64/lib/cmake/Qt6
|
||||||
|
|
||||||
# project configuration
|
# project configuration
|
||||||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
|
||||||
#build executable
|
#build executable
|
||||||
|
|||||||
Reference in New Issue
Block a user