jenkinsfile: try to correct rust target check

This commit is contained in:
Nils Andreas Svee committed 2022-11-27 15:38:38 +01:00
1 parent cac4fc761b
commit 89c441de90
1 file changed
+4 -4
Vendored
+4 -4
View File
@@ -35,12 +35,12 @@ pipeline {
stage('Install Rust target') { stage('Install Rust target') {
when { when {
expression { expression {
def rs = sh(script: "rustup target list --installed | grep ${TARGET}", returnStatus: true) def res = sh(script: "rustup target list --installed", returnStdout: true)
if (res > 0) { if (res.contains(TARGET) {
return true
} else {
return false return false
} else {
return true
} }
} }
} }