mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-11-02 16:44:45 +00:00
expose lResult and lLastResult
This commit is contained in:
@@ -42,7 +42,7 @@ std::string to_string(const RunState& rs) {
|
||||
|
||||
Run::Run() {
|
||||
result = RunState::SUCCESS;
|
||||
|
||||
lastResult = RunState::UNKNOWN;
|
||||
}
|
||||
|
||||
Run::~Run() {
|
||||
@@ -84,6 +84,8 @@ bool Run::step() {
|
||||
setenv("PATH", PATH.c_str(), true);
|
||||
setenv("lBuildNum", buildNum.c_str(), true);
|
||||
setenv("lJobName", name.c_str(), true);
|
||||
setenv("lResult", to_string(result).c_str(), true);
|
||||
setenv("lLastResult", to_string(lastResult).c_str(), true);
|
||||
setenv("lWorkspace", (fs::path(laminarHome)/"run"/name/"workspace").string().c_str(), true);
|
||||
for(auto& pair : params) {
|
||||
setenv(pair.first.c_str(), pair.second.c_str(), false);
|
||||
|
||||
Reference in New Issue
Block a user