Try using custom dockerfile to cut down on time for code coverage
timw4mail/rusty-numbers/pipeline/head This commit looks good Details

This commit is contained in:
Timothy Warren 2020-02-21 08:34:50 -05:00
parent 3624b415ee
commit f49d1798e2
2 changed files with 4 additions and 3 deletions

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rust:latest
RUN cargo install cargo-tarpaulin

4
Jenkinsfile vendored
View File

@ -1,7 +1,6 @@
pipeline { pipeline {
agent { agent {
docker { dockerfile {
image 'rust:latest'
args '-u root --privileged' args '-u root --privileged'
} }
} }
@ -18,7 +17,6 @@ pipeline {
} }
stage('Coverage') { stage('Coverage') {
steps { steps {
sh "cargo install cargo-tarpaulin"
sh "make generate-coverage" sh "make generate-coverage"
} }
} }