the function gitCheckout() holds the following steps: - git clone unless done - checking out a branch/tag/commit including rebase and updating submodules - launching the update source revision script - printing the submodule status - printing the last 3 commits of the git history But so far you could not use the steps separately. Thus, this function was refactored by extracting some steps into own functions so that they can be used easily. Example: the job workspace is the cloned git repository and you want to update the source revision hashes ;-P Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com> |
||
|---|---|---|
| collections | ||
| doc | ||
| docker | ||
| inventory | ||
| jobs | ||
| playbooks/getting_started | ||
| .gitignore | ||
| README.md | ||
| ansible.cfg | ||
| docker-compose.yaml | ||
README.md
NetModule Wireless Linux CI/CD Repository
This repository contains all necessary jobs for the CI/CD environment of the NetModule Wireless Linux (NWL).
Content
This repository holds the automation files for ansible, the CI environment for the NWL and its documentation:
- doc
- the documentation of the work for the NWL CI environment
- ansible automation:
- ansible.cfg
- the paths of inventory, collections, etc for AWX
- inventory
- the ansible inventory with all managed hosts/devices
- playbooks
- ansible playbooks
- ansible.cfg
- jenkins environment:
- jobs
- Jenkinsfile_Common
- a collection of commonly used functions, so that duplicated code can be avoided
- Jenkinsfile_Build / Jenkinsfile_Build_awx
- a pipeline building a NWL yocto target (postfix awx is for the instance set up with AWX)
- Jenkinsfile_Documentation_awx
- a pipeline building the CI documentation (for the instance set up with AWX)
- Jenkinsfile_Common
- docker
- Dockerfile
- nwl-cicd.yaml
- plugins.txt
- docker-compose.yaml
- jobs
Building the Documentation
The documentation bases on sphinx and is written in reStructuredText format. To build the documenation you need to install sphinx first:
sudo apt install python3-sphinx
sudo pip3 install cloud-sptheme
Within the directory doc you can use make as follows:
# entering doc:
cd doc
# clean and build the documentation:
make clean
make html
# open the generated documentation in the browser:
xdg-open out/html/index.html
cd ..