jenkinsfile: try to correct rust target check
This commit is contained in:
1 parent
cac4fc761b
commit
89c441de90
1 file changed
+4
-4
Vendored
+4
-4
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user