From 7928ce3239cf3d4f9936de8df24a99e14503d25c Mon Sep 17 00:00:00 2001 From: Uwe Jakobeit Date: Sun, 29 Mar 2026 17:56:32 +0200 Subject: [PATCH] Initial Jenkinsfile provided --- Jenkinsfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..3275b5b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,39 @@ +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') { + steps { + //sh 'rm -rf build' + echo "Building 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" + } + } + stage('Build') { + steps { + // Build the project using the generated files + //sh 'cmake --build build' + echo "Build project" + } + } + + stage('Test') { + steps { + // Run the executable to verify it works + //sh './build/hello_app' + echo "Test project" + } + } + } +}