From f8b7939ac48b25d570a95a84bc634150971cfeca Mon Sep 17 00:00:00 2001 From: Stephen <stephen@stephendownward.ca> Date: Sat, 26 Sep 2020 19:39:12 -0300 Subject: [PATCH] CI --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..df5113c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent { + docker { + image 'rust:latest' + } + } + + stages { + stage('Clippy') { + steps { + sh "rustup component add clippy" + sh "cargo clippy --all-targets --all-features -- -D warnings" + } + } + stage('Build') { + steps { + sh "cargo build --release" + } + } + } + + post { + always { + archiveArtifacts artifacts: 'target/release/dotacat', fingerprint: true + } + } +} \ No newline at end of file -- GitLab