jenkinsfile: use CC env for conditional
This commit is contained in:
1 parent
9d3b028ce4
commit
779e6de707
1 file changed
+1
-1
Vendored
+1
-1
@@ -51,7 +51,7 @@ pipeline {
|
|||||||
stage('Download GCC toolchain') {
|
stage('Download GCC toolchain') {
|
||||||
when {
|
when {
|
||||||
expression {
|
expression {
|
||||||
def res = sh(script: "${GCC_TARGET}-gcc -v", returnStatus: true)
|
def res = sh(script: "${CC} -v", returnStatus: true)
|
||||||
|
|
||||||
if (res > 0) {
|
if (res > 0) {
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in new issue
Block a user