Skip to content

Commit

Permalink
Update Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jstnlef authored Jun 15, 2019
1 parent 115fbe6 commit 6768310
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ pipeline {
sh '$CARGO_HOME/bin/cargo clippy --all --all-features -- -D warnings'
}
}
stage('Run cargo clean') {
environment {
CARGO_HOME = '/home/jenkins/.cargo'
RUSTUP_HOME = '/home/jenkins/.rustup'
}
agent {
label 'linux'
}
steps {
echo 'Cleaning up...'
sh '/home/jenkins/.cargo/bin/cargo clean'
echo 'Done!'
}
}
stage('Run Tests') {
parallel {
stage("Test on Windows") {
Expand Down Expand Up @@ -103,19 +117,5 @@ pipeline {
echo 'Uploading book here'
}
}
stage('Run cargo clean') {
environment {
CARGO_HOME = '/home/jenkins/.cargo'
RUSTUP_HOME = '/home/jenkins/.rustup'
}
agent {
label 'linux'
}
steps {
echo 'Cleaning up...'
sh '/home/jenkins/.cargo/bin/cargo clean'
echo 'Done!'
}
}
}
}

0 comments on commit 6768310

Please sign in to comment.