From 2a2da3224518ddf8e5adeefecf509ffc5bb576f0 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sat, 5 Oct 2024 14:04:22 -0500 Subject: [PATCH] feat: Add jenkinsfile --- Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6c76540 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,21 @@ +pipeline { + agent { + docker { + reuseNode true + image 'rust:1.81' + } + } + stages { + stage('Build release binary') { + steps { + sh 'cargo build --release' + } + } + stage('Move binary') { + steps { + sh 'mv ./target/release/thp /var/bin' + } + } + } +} +