From 083ecb3008fae811664fd9da5337b1c0e2c8a048 Mon Sep 17 00:00:00 2001 From: Mitch Harding Date: Thu, 5 Aug 2021 17:11:42 -0500 Subject: [PATCH] Provide RPM build metadata when building RPM --- Jenkinsfile.github | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile.github b/Jenkinsfile.github index ad34591..76bf149 100644 --- a/Jenkinsfile.github +++ b/Jenkinsfile.github @@ -14,6 +14,7 @@ pipeline { NAME = "cf-ca-cert-config-framework" IS_STABLE = getBuildIsStable() RPM_VERSION = sh(returnStdout: true, script: "head -1 .version").trim() + BUILD_METADATA = getRpmRevision(isStable: env.IS_STABLE) } stages { @@ -35,13 +36,9 @@ pipeline { steps { sh "make lint" } - } + } stage("Add RPM Metadata") { - environment { - BUILD_METADATA = getRpmRevision(isStable: env.IS_STABLE) - } - steps { echo "RPM build metadata is ${env.BUILD_METADATA}" runLibraryScript("addRpmMetaData.sh", "")