From 0243621cd34e7ca91d191bcd0b8e3ea3d65fa67c Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sat, 14 May 2022 01:37:43 -0500 Subject: [PATCH] Add Jenkinsfile --- Cargo.lock | 18 +++++++++--------- Cargo.toml | 2 +- Jenkinsfile | 17 +++++++++++++++++ 3 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 Jenkinsfile diff --git a/Cargo.lock b/Cargo.lock index 63785e3..750ac7c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,15 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "IBConverter" +version = "0.1.0" +dependencies = [ + "serde", + "serde_yaml", + "yaml-rust", +] + [[package]] name = "autocfg" version = "1.1.0" @@ -30,15 +39,6 @@ version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" -[[package]] -name = "rust-learning" -version = "0.1.0" -dependencies = [ - "serde", - "serde_yaml", - "yaml-rust", -] - [[package]] name = "ryu" version = "1.0.9" diff --git a/Cargo.toml b/Cargo.toml index 74f17dd..77cda36 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "rust-learning" +name = "IBConverter" version = "0.1.0" edition = "2021" diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..2138a61 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,17 @@ +pipeline { + agent { + docker { image 'rust:latest' } + } + stages { + stage('Build') { + steps { + sh 'cargo build --release' + } + post { + always { + archiveArtifacts artifacts: 'target/release/*.exe', followSymlinks: false + } + } + } + } +} \ No newline at end of file