Skip to content

Commit

Permalink
Merge pull request #154 from mrodozov/add-arch-and-branch-33
Browse files Browse the repository at this point in the history
Add arch and cmsdist branch to opts.json
  • Loading branch information
smuzaffar authored Jan 20, 2020
2 parents 5cc7c0a + e3cd490 commit f35f0ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmsBuild
Original file line number Diff line number Diff line change
Expand Up @@ -3319,7 +3319,13 @@ def buildPackage(pkg, scheduler):

if monitor_job:
from json import dump as jdump
build_opts = {"builders": opts.workersPoolSize, "build_jobs": opts.compilingProcesses}
err, cmsdist_branch = getstatusoutput("cd %s; git rev-parse --abbrev-ref HEAD" % opts.cmsdist)
if err: cmsdist_branch = ""
err, hname = getstatusoutput("hostname")
build_opts = {"builders": opts.workersPoolSize, "build_jobs": opts.compilingProcesses,
"architecture": opts.architecture, "cmsdist": cmsdist_branch, "name": pkg.name,
"realversion": pkg.realVersion, "version": pkg.version, "checksum": pkg.checksum,
"hostname": hname}
with open(pkg.builddir + "/opts.json", "w") as bopts_file:
jdump(build_opts, bopts_file)

Expand Down

0 comments on commit f35f0ac

Please sign in to comment.