From 4101144e261d1df552f288f911ef205407140076 Mon Sep 17 00:00:00 2001 From: William Bell <62452284+Ugric@users.noreply.github.com> Date: Sun, 30 Nov 2025 05:50:34 +0000 Subject: [PATCH] test --- Jenkinsfile | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1b6235e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,66 @@ +pipeline { + agent any + stages { + stage('Checkout') { + steps { + checkout scm + sh 'git submodule update --init --recursive' + } + } + + stage('Setup Conan') { + steps { + sh ''' + python3 -m venv /tmp/venv + . /tmp/venv/bin/activate + git + pip install --upgrade pip + pip install conan + ''' + } + } + + stage('Setup Conan Profile') { + steps { + sh ''' + . /tmp/venv/bin/activate + if [ ! -f ~/.conan2/profiles/default ]; then + conan profile detect + fi + ''' + } + } + + stage('Install Dependencies') { + steps { + sh ''' + . /tmp/venv/bin/activate + conan install . --build=missing + ''' + } + } + + stage('Build Project') { + steps { + sh ''' + . /tmp/venv/bin/activate + conan build . + ''' + } + } + + stage('Archive Build Artifacts') { + steps { + sh ''' + # Copy LICENSE.txt into build/bin + cp LICENSE.txt build/bin/ + + # Create tarball with the contents of build/bin at the root + tar -czf chloride.tar.gz -C build/bin . + ''' + // Archive the tarball + archiveArtifacts artifacts: 'chloride.tar.gz', allowEmptyArchive: false + } + } + } +}