From 9f2eed96a9fe0cdd668f7c6bc4a7a95252574085 Mon Sep 17 00:00:00 2001 From: Jim Nicholson Date: Fri, 9 Feb 2024 00:08:12 -0800 Subject: [PATCH] Update buildStep --- vars/buildStep.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vars/buildStep.groovy b/vars/buildStep.groovy index c5ffc53..362a7ea 100644 --- a/vars/buildStep.groovy +++ b/vars/buildStep.groovy @@ -3,7 +3,7 @@ void call(Map config = [:], Closure body = { }) { Map defaults = [ saveArtifaces: false, - buildTest: 'Makefile', + buildRequires: 'Makefile', buildCmd: 'make all', stepName: 'Build' ] @@ -13,12 +13,12 @@ void call(Map config = [:], Closure body = { }) { if (runConfig.saveArtifacts) { assert runConfig.artifacts : 'Error: saveArtifacts is set to true; must specify artifacts!' } - if ( fileExists(runConfig.buildTest)) { + if ( fileExists(runConfig.buildRequires)) { sh """ ${runConfig.buildCmd} """ } else { - error("ERROR: File ${runConfig.buildTest} does not exist in workspace.") + error("ERROR: File ${runConfig.buildRequires} does not exist in workspace.") } if (runConfig.saveArtifacts) { artifactsList = runConfig.artifacts.join(',')