Zuul: Fix artifact retrieval

With our updated Zuul (and the associated update of the base job), a
Zuul manifest is almost always returned as an artifact form all builds.
This has implications with out dependency caching -- the code previously
assumed that we could just pick *the* artifact from the most recent
change item from the CzechLight/Dependencies repo, and that would be our
tarball. That's no longer the case, it could as well be the Zuul
manifest, so let's bring in more JSON magic:

- `.artifacts[]?` is a generator which return the "artifacts" member of
the input as individual items in a sequence, or a null on error ("no
artifacts")
- `select(.foo == "bar")` filters by attribute value, that one is easy,
- `[.artifacts[]? | select ... ]` converts that generator back to an array,
- `[-1]?` selects the last item, if there's any, otherwise returning null,
- ...which is then turned into an empty string, or the resulting value
by `+ ""`.

Change-Id: Ieafa1be1f7066e5005a8e35f4fe86887cbaff3e5
1 file changed
tree: 11c4533b2ad4d2c3b754315208cd7e0bf2b1ace2
  1. .clang-format
  2. .gitmodules
  3. .zuul.yaml
  4. CMakeLists.txt
  5. Doxyfile.in
  6. LICENSE
  7. LICENSE.md
  8. README.md
  9. ci/
  10. cmake/
  11. docs/
  12. src/
  13. submodules/
  14. tests/
README.md

Console interface to NETCONF servers

This program provides an interactive console for working with YANG data. It can connect to NETCONF servers, and also talk to sysrepo locally.

Installation

For building, one needs:

Use an exact commit of any dependencies as specified in submodules/dependencies/*.

The build process uses CMake. A quick-and-dirty build with no fancy options can be as simple as mkdir build && cd build && cmake .. && make && make install.

Bug Reporting

Issue reporting and feature requests are welcome via Taiga.io.

Development

We are using Gerrit for patch submission, code review and Continuous Integration (CI). Development roadmap and planning happens over Taiga.io.

Credits

Copyright © CESNET, https://www.cesnet.cz/ . Portions copyright © Faculty of Information Technology, Czech Technical University in Prague, https://fit.cvut.cz/ . Most of the code was written by Václav Kubernát (CESNET, formerly FIT ČVUT) and Jan Kundrát (CESNET). The project is distributed under the terms of the Apache 2.0 license.