pipeline { agent none stages { stage('Build') { agent { docker { image 'rust:alpine' } } environment { RUSTFLAGS = '-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' } steps { sh 'sudo apk add pkgconf musl-dev curl' sh 'cargo build --release --target x86_64-unknown-linux-musl' sh 'ls -la' } } } }