jenkinsfile: use CC env for conditional

This commit is contained in:
Nils Andreas Svee committed 2022-11-27 15:26:07 +01:00
1 parent 9d3b028ce4
commit 779e6de707
1 file changed
+1 -1
Vendored
+1 -1
View File
@@ -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