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') {
|
||||
when {
|
||||
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) {
|
||||
return true
|
||||
} else {
|
||||
if (res.contains(TARGET) {
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user