From 3ef7a2fac41a7f6e5ab52cdd6633a93450c58a26 Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Wed, 19 Apr 2023 10:19:04 -0400 Subject: [PATCH] jenkins CI pt.5 --- Jenkinsfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 74f6cdcebc9111c4a028a7e49504948143050452..867decf04752c98bc2eab5cb3f6d973cd7008a79 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,22 @@ pipeline { - agent any + agent { + docker { image 'rust' } + } stages { - stage('Build') { + stage('Prepare') { steps { - echo 'Building..' - sh 'cargo build' + rustup component add clippy } } - stage('Test') { + stage('Build') { steps { - echo 'Testing..' + sh 'cargo build' } } - stage('Deploy') { + stage('Clippy') { steps { - echo 'Deploying....' + sh 'cargo clippy' } } }