Initial commit
hello-world/pipeline/head This commit looks good

This commit is contained in:
2026-05-03 09:02:01 +01:00
commit 4d255fdcad
4 changed files with 40 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(HelloWorldCpp LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_executable(hello_world src/main.cpp)
Vendored
+17
View File
@@ -0,0 +1,17 @@
pipeline {
agent any
stages {
stage('Configure') {
steps {
sh 'cmake -S . -B build'
}
}
stage('Build') {
steps {
sh 'cmake --build build'
}
}
}
}
+9
View File
@@ -0,0 +1,9 @@
# Hello World C++ Project
## Build
```bash
cmake -S . -B build
cmake --build build
./build/hello_world
```
+6
View File
@@ -0,0 +1,6 @@
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
return 0;
}