pipeline { agent { docker { image 'rust' } } stages { stage('Prepare') { steps { rustup component add clippy } } stage('Build') { steps { sh 'cargo build' } } stage('Clippy') { steps { sh 'cargo clippy' } } } }