diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-31 10:47:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-31 10:47:40 +0200 |
commit | b76178a33178a6385bf0a9ee695b54e7992117a1 (patch) | |
tree | 61c1d963983423029958fd828413a62c604a2d13 /bdep/ci.cxx | |
parent | 99fe901f2148b3f9ba6569fa92c1c88deef1dff5 (diff) |
Send CI requests from staged toolchain to ci.stage.build2.org
Diffstat (limited to 'bdep/ci.cxx')
-rw-r--r-- | bdep/ci.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bdep/ci.cxx b/bdep/ci.cxx index 1bb95c6..0ab6fad 100644 --- a/bdep/ci.cxx +++ b/bdep/ci.cxx @@ -19,6 +19,14 @@ namespace bdep { using bpkg::repository_location; + static const url default_server ( +#ifdef BDEP_STAGE + "https://ci.stage.build2.org" +#else + "https://ci.cppget.org" +#endif + ); + // Get the project's remote repository location corresponding to the current // (local) state of the repository. Fail if the working directory is not // clean or if the local state isn't in sync with the remote. @@ -271,7 +279,7 @@ namespace bdep // Get the server and repository URLs. // - const url& srv (o.server ()); + const url& srv (o.server_specified () ? o.server () : default_server); const repository_location rep (repository_url (o, prj)); // Print the plan and ask for confirmation. |