initial commit
This commit is contained in:
38
Jenkinsfile
vendored
Normal file
38
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
pipeline {
|
||||
agent any // Or use 'dockerfile' if running in a container
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
// Checks out the source code from the configured Gitea SCM
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Clean') {
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user