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' }