aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-ci.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-03-13 16:09:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-03-26 20:41:21 +0300
commit6ccee38f43493f8f6e87bab549e9ef952244f39a (patch)
tree3c75f102175fc6a566234e904a818dcd74029755 /mod/mod-ci.cxx
parentf7327a0b3cd6723cb289819bad1d664cfd5d6618 (diff)
Add support for interactive CI mode
Diffstat (limited to 'mod/mod-ci.cxx')
-rw-r--r--mod/mod-ci.cxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/mod/mod-ci.cxx b/mod/mod-ci.cxx
index d2da93f..4da72b6 100644
--- a/mod/mod-ci.cxx
+++ b/mod/mod-ci.cxx
@@ -376,15 +376,18 @@ handle (request& rq, response& rs)
s.next ("package", p);
}
+ if (params.interactive_specified ())
+ s.next ("interactive", params.interactive ());
+
+ if (!simulate.empty ())
+ s.next ("simulate", simulate);
+
s.next ("timestamp",
butl::to_string (ts,
"%Y-%m-%dT%H:%M:%SZ",
false /* special */,
false /* local */));
- if (!simulate.empty ())
- s.next ("simulate", simulate);
-
// Serialize the User-Agent HTTP header and the client IP address.
//
optional<string> ip;
@@ -412,10 +415,11 @@ handle (request& rq, response& rs)
{
const string& n (nv.name);
- if (n != "repository" &&
- n != "_" &&
- n != "package" &&
- n != "overrides" &&
+ if (n != "repository" &&
+ n != "_" &&
+ n != "package" &&
+ n != "overrides" &&
+ n != "interactive" &&
n != "simulate")
s.next (n, nv.value ? *nv.value : "");
}