fix(build): try to move cargo home to ws

This commit is contained in:
Nils Andreas Svee committed 2025-05-09 18:56:36 +07:00
1 parent 9c4b6ab7df
commit 44305f70ad
1 file changed
+4 -3
Vendored
+4 -3
View File
@@ -21,7 +21,7 @@ pipeline {
stage('Build') { stage('Build') {
steps { steps {
sh ''' sh '''
cargo build \ env CARGO_HOME="$(pwd)/.cargo" cargo build \
--release --release
''' '''
} }
@@ -29,10 +29,11 @@ pipeline {
stage('Archive artifact') { stage('Archive artifact') {
steps { steps {
dir("target/${TARGET}/release") { sh 'echo TODO'
/*dir("target/${TARGET}/release") {
sh "cp -v sqm-autorate-rust sqm-autorate-rust-${TARGET}" sh "cp -v sqm-autorate-rust sqm-autorate-rust-${TARGET}"
archiveArtifacts artifacts: "sqm-autorate-rust-${TARGET}", fingerprint: true, onlyIfSuccessful: true archiveArtifacts artifacts: "sqm-autorate-rust-${TARGET}", fingerprint: true, onlyIfSuccessful: true
} }*/
} }
} }
} }