Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Jenkins build number in RPM

Mike McGann76ccdb6f9978
diff --git a/Gruntfile.js b/Gruntfile.js
index f04b176a4..3cebc337c 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -13,6 +13,9 @@ var moment = require("./node_modules/moment/moment");
var buildTimestamp = moment.utc().format("MMMM DD, YYYY [-] HH:mm [UTC]");
var buildNonce = moment.utc().format("YYYYMMDDHHmmssSSS");
+var buildNumber = ( process.env.BUILD_NUMBER )
+ ? "." + process.env.BUILD_NUMBER : "";
+
module.exports = function(grunt) {
var wvJs = grunt.file.readJSON("etc/deploy/wv.js.json");
@@ -170,7 +173,8 @@ module.exports = function(grunt) {
},
rpmbuild: {
command: 'rpmbuild --define "_topdir $PWD/build/rpmbuild" ' +
- '-ba build/rpmbuild/SPECS/worldview.spec'
+ '--define "build_num ' + buildNumber +'" ' +
+ '-ba build/rpmbuild/SPECS/worldview.spec'
}
},