From 445fe859a208cd9672907f6338567a4ff0672b08 Mon Sep 17 00:00:00 2001 From: snow flurry Date: Tue, 7 Jan 2025 13:21:52 -0800 Subject: [PATCH] Initial commit --- .ci/Jenkinsfile | 18 ++++++++++++++++++ main.c | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .ci/Jenkinsfile create mode 100644 main.c diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile new file mode 100644 index 0000000..d648677 --- /dev/null +++ b/.ci/Jenkinsfile @@ -0,0 +1,18 @@ +pipeline { + /* choose agents per stage */ + agent none + + stages { + stage('Build') { + agent { + docker { + image 'gcc:latest' + args '-v ${PWD}:/src -w /src' + } + } + steps { + sh 'gcc -o hello main.c' + } + } + } +} diff --git a/main.c b/main.c new file mode 100644 index 0000000..23bb5c5 --- /dev/null +++ b/main.c @@ -0,0 +1,10 @@ +/* main.c: does very important work */ + +#include + +int +main(int argc, char *argv[]) +{ + printf("Hello, CI!\n"); + return 0; +}