From 1bac620853d8f8e8a1ca23af8580233057fd7b4d Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 16 Aug 2022 10:23:39 +0200 Subject: [PATCH] maybe this works? --- automation/Jenkinsfile | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index 1d792b0..c4cec62 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -1,47 +1,29 @@ pipeline { - agent any + + agent { + dockerfile { + dir 'automation' + reuseNode true + } + } stages { stage('Clippy') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } - } steps { sh 'cargo clippy' } } stage('Rustfmt') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } - } steps { sh 'cargo fmt' } } stage('Test') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } - } steps { - sh 'cargo check' + sh 'cargo test' } } stage('Check') { - agent { - dockerfile { - dir 'automation' - reuseNode true - } - } steps { sh 'cargo check' }