From 0ddb9c69f1b71101314e45599fe1ee1b1571760f Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 6 Dec 2023 20:01:36 +0100 Subject: [PATCH] jenkinsfile fixes --- automation/Jenkinsfile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/automation/Jenkinsfile b/automation/Jenkinsfile index fae720d..2965b04 100644 --- a/automation/Jenkinsfile +++ b/automation/Jenkinsfile @@ -62,15 +62,13 @@ pipeline { } } steps { - script { - withEnv(['RUSTFLAGS=-Cinstrument-coverage', 'LLVM_PROFILE_FILE=target/coverage/%p-%m.profraw']) { - echo "Executing tests with coverage" - sh 'cargo test' - sh 'grcov . -s . --binary-path ./target/debug -t html --branch --ignore-not-existing -o ./target/debug/coverage/' - sshagent(credentials: ['documentation-buildfix']) { - // Deploy to Apache webserver - sh 'rsync --mkpath -r --delete ./target/debug/coverage/ buildfix@documentation.irs.uni-stuttgart.de:/projects/spacepackets-rs/coverage/latest' - } + withEnv(['RUSTFLAGS=-Cinstrument-coverage', 'LLVM_PROFILE_FILE=target/coverage/%p-%m.profraw']) { + echo "Executing tests with coverage" + sh 'cargo test --all-features' + sh 'grcov . -s . --binary-path ./target/debug -t html --branch --ignore-not-existing -o ./target/debug/coverage/' + sshagent(credentials: ['documentation-buildfix']) { + // Deploy to Apache webserver + sh 'rsync --mkpath -r --delete ./target/debug/coverage/ buildfix@documentation.irs.uni-stuttgart.de:/projects/spacepackets-rs/coverage/latest' } } }