Jenkinsfile - set 'Qt6 installation dir'... still
This commit is contained in:
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@@ -1,5 +1,8 @@
|
||||
pipeline {
|
||||
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 {
|
||||
stage('Clean') {
|
||||
steps {
|
||||
@@ -16,15 +19,14 @@ pipeline {
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
environment {
|
||||
Qt6Dir=/home/k4/Qt/6.10.2/lib/cmake
|
||||
}
|
||||
|
||||
steps {
|
||||
// Build the project using the generated files
|
||||
echo "Build project"
|
||||
// sh 'export Qt6Dir=/home/k4/Qt/6.10.2/lib/cmake'
|
||||
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'
|
||||
|
||||
// echo "See localbuild says on the environment"
|
||||
|
||||
Reference in New Issue
Block a user