Commit Graph

185 Commits

Author SHA1 Message Date
Marc Mattmüller a3edca0cb5 jobs/seed: removed the number in the description of the doc job
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 15:36:57 +02:00
Marc Mattmüller f4aeb3c3dd jobs/seed: adapted jenkins files and integrated split of nightly and yocto build
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 15:35:05 +02:00
Marc Mattmüller e645a68eac jobs/Common: added temporary source update tasks (sub-repositories)
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 11:58:12 +02:00
Marc Mattmüller 0afedfec06 jobs/Common: remove split of archiving built artifacts and manifests
The manifests will be added to the *.ci-artifacts file and thus
no longer need to be archived separately.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 11:58:00 +02:00
Marc Mattmüller 5768393db7 jobs/buildAll: released all legacy netmodule targets in nightly
The function isMachineSane() held so far a guard that only the
machine cn9130-cf-pro was built. According to the latest update
the legacy parts are now integrated and thus can be released to
be built.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 11:32:06 +02:00
Marc Mattmüller 64c24ccfcb doc/nwl-ci: added setup of hash equivalence server
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 11:28:21 +02:00
Marc Mattmüller 5313b9e4f1 jobs/Common: removed the duplicated file type for the temporary file name
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 10:04:25 +02:00
Marc Mattmüller f64940dcfd jobs/Common: temporary fix for the manifest file name
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 09:52:06 +02:00
Marc Mattmüller 3e5d3a0e69 jobs/Common: printing info about hash equiv server and fix typo
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 07:28:25 +02:00
Marc Mattmüller d63f4db6fa jobs/Common: integrated hash equivalence server into auto.conf
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-21 07:25:22 +02:00
Alexandre Bard 9bc8929d43 jobs/nwlTargets: Change machine names according to bsp layer 2023-08-10 14:02:03 +02:00
Alexandre Bard 4d61c07154 Jenkinsfile_Common: Build fitimage as default
The nwl-image-testable does not exists anymore and for the moment we are
using the fitimage.
2023-08-04 11:29:58 +02:00
Marc Mattmüller 450082c366 doc/nwl-ci: fixed server path of sstate-cache mirror
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-01 11:01:35 +02:00
Marc Mattmüller c50ff430a1 doc/nwl-ci: added change of manage script for an additional ssh key
to have the ssh key of nginx available in the docker instance, the
manage script needed to be adapted as each key was added with a
single mount command.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-01 10:59:36 +02:00
Marc Mattmüller 8f6ae85d9e jobs/buildAll,buildTarget: suppressed shell commands on job console
to have a better overview some shell commands of basic parts are
suppressed with set +x

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-01 10:58:03 +02:00
Marc Mattmüller 9d7597ea4b jobs/common: fixed sstate-cache sync and refactored for less output
Fixed the sstate-cache mirror synchroniziation including more
output about what is snychronized. Additionally suppressed the
shell commands to have less output on the job console.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-01 10:55:34 +02:00
Marc Mattmüller 40a9087135 jobs/buildAll: refactoring for a better readablility
with this commit a bug (testing if build job was successful) is
fixed too.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-01 09:19:55 +02:00
Marc Mattmüller a734db2932 doc/nwl-ci: documented adaptions for sstate-cache mirror and job split
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-31 18:07:36 +02:00
Marc Mattmüller ea82dedaa1 jobs/buildAll: workaround for administration permissions
getting the result of buildJob needs approval but as we are
triggering the job anonymous this is not possible. Thus, this
workaround is implemented

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-31 17:37:05 +02:00
Marc Mattmüller 74ef65ec33 jobs/buildAll: fixed small typo and enhanced stage status
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-31 17:12:51 +02:00
Marc Mattmüller 27afb7e2ef jobs/nwlTargets: added the legacy NetModule machines
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-31 16:28:31 +02:00
Marc Mattmüller 34717bd4bc jobs/common: adapted common jenkins file according the needs
the previous 2 commits need the changes of this file. But for a
better visibility it was committed separately

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-31 16:27:32 +02:00
Marc Mattmüller a3c8507d5a jobs: add new pipeline building a yocto target (BuildTarget)
this job is responsible to build a yocto target, syncing the sstate
cache and deploying the artifact to nexus.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-31 16:26:36 +02:00
Marc Mattmüller 850e9f746e jobs: rename and adapt Build Pipeline for building all targets
the pipeline was renamed to BuildAll and adatped to act as the
overall pipeline building all NWL targets.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-31 16:24:54 +02:00
Marc Mattmüller cd76fd0385 doc/researchAnsible: comparisson of kubernetes tools and added K3s setup
There are different kubernetes tools. This commit holds a table with a
comparisson of the different tools.
Additionally a K3s instance was set up and documented.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-24 16:52:00 +02:00
Marc Mattmüller 3471acdf6d docs/researchAnsible: added section about jenkins plugin versions
the plugin versions are as important as the jenkins version.
One could update the plugins via Jenkins UI and with that you
might loose the control of versions in case of a rebuilt for an
already released software. Thus, this section was added and we
need to integrate the versions as well.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 16:24:54 +02:00
Marc Mattmüller 916f82d764 doc/researchAnsible: reformatting a paragraph
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 13:32:05 +02:00
Marc Mattmüller c33d1b0b18 doc: added section about further research concerning host selection
With this commit the investigations regarding running a playbook
on specific host(s) are documented.

There are different host selection possibilities like limitation,
providing an inventory with only one host (command line), using
the playbook keyword 'when' or by providing a variable for the
playbook keyword 'hosts'.

This part is important if it comes to an ochestration of hosts
with different running and setup states.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 13:05:06 +02:00
Marc Mattmüller 7361cf6e27 playbooks/host-info: removed the host information string at output
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 13:00:17 +02:00
Marc Mattmüller 57daef6361 playbooks/host-info: removed the temperature part
as the temperatures might not be available, they were completely
removed

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 12:58:49 +02:00
Marc Mattmüller 3d46bbd4ab playbooks/host-info: using a temporary file for information
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 12:55:03 +02:00
Marc Mattmüller d42cb877c8 playbook/host-info: using bash for getting temperatures
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 12:21:15 +02:00
Marc Mattmüller 90c49c134d playbooks: added host-info playbook
this playbook needs a parameter target as extra variable which
defines on which host(s) the playbook is running on.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 12:03:52 +02:00
Marc Mattmüller c1216d0d7d inventory: added netmodule-01 as host to inventory
Added this host for doing tests with multiple hosts

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-18 10:43:14 +02:00
Marc Mattmüller 69cacceb4d doc/nextlevel-ci: added snippet to install a GitLab runner
To use the GitLab CI on a project, a server needs to install a
runner. The NetModule Know-How documentation holds already an
instruction guide about how to set up such a runner. For
completness a short summary is added to the next-level CI page.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-17 08:02:03 +02:00
Marc Mattmüller 5e4f2fd812 doc/nextlevel-ci: updated ansible template overview
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-17 06:30:55 +02:00
Marc Mattmüller 51a81ac791 playbooks/setup-nwl-jenkins: fixed workdir path for secrets
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 17:09:30 +02:00
Marc Mattmüller a41e82830e doc/researchAnsible: added note about changed playbooks with truststore setup
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 16:59:30 +02:00
Marc Mattmüller 9c870c9e29 playbooks/setup-nwl-jenkins: added bash root path for key setup
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 16:30:09 +02:00
Marc Mattmüller c6bd0ca952 playbooks/setup-nwl-jenkins: adapt command to import rootCA
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 16:04:17 +02:00
Marc Mattmüller ba1a480537 docker,playbooks: moved getting root CA into playbook
there is an issue with curl getting the Belden root cert, thus the
setup was completely moved to the playbook.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 15:34:24 +02:00
Marc Mattmüller 94aa68c0d6 docker, playbooks: adaption for integrating root CA
The initial start is now moved to the playbook setting NWL jenkins
up. Thus the start/stop playbook does no longer need the initial
parameter as variable.
With it the NWL jenkins docker image was versionized to 0.0.3 and
the jenkins version was updated to the latest version.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 15:15:43 +02:00
Marc Mattmüller f6c4371aab doc,docker/nwl-cicd: added docu about triggering jobs over web API
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 14:32:53 +02:00
Marc Mattmüller a70f84a52e jobs: replaced the multibranch- with normal pipeline jobs
There are 2 reasons for this replacement:
- the build pipeline holds a parameter of the branch to build
- the project to build can be separated from the CI work

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 14:12:56 +02:00
Marc Mattmüller 7d9c9f15a8 doc/researchAnsible: added section about nexus upload and rootCA
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-11 14:01:55 +02:00
Marc Mattmüller c0aa819f5f doc/researchAnsible: added part for job seeding
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-07 16:21:20 +02:00
Marc Mattmüller 9725d7a7ac playbooks: added playbook to setup git url of seed job
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-07 15:45:21 +02:00
Marc Mattmüller 2a90497cf2 docker-compose.yaml: set jenkins image to nwl version 0.0.2
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-07 15:35:48 +02:00
Marc Mattmüller 4259948093 docker/nwl-cicd.yaml: disabled script security
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-07-07 15:31:22 +02:00
Marc Mattmüller 206540d8b9 doc: added the latest part of Job seeding
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-27 17:22:36 +02:00