Commit Graph

26 Commits

Author SHA1 Message Date
Marc Mattmüller 42f9c9eb4d jobs/Common: replaced the the variable for generating ci-artifacts
declaring COREOS_IMAGE_EXTRACLASSES += "coreos-image-ci" let
bitbake generate a file *.ci-artifacts containing the files of the
build to archive/deploy.
originally it was agreed to declare
NWL_IMAGE_EXTRACLASSES += "nwl-image-ci" accordingly for NWL but
this part was never implemented. Thus, the replacement with this
commit

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-09-18 11:38:23 +02:00
Marc Mattmüller c08549263b jobs/BuildAll,Common: added time measurement for building targets
the nightly builds the target in a loop. To have directly a job
log with an overview about the consumed build times, the nightly
prints the measured time after each target build.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-09-12 15:47:36 +02:00
Marc Mattmüller 6c83d053c8 jobs/Common,BuildAll: integrated Abort handling
if the nightly job is aborted any downstream job are aborted and
no further build target job is triggered. I case of an exception
the job is handled as failed with the note of exception but no
longer an error is thrown.
To get the handling properly done, the nightly triggers downstream
jobs with propagate flag set to false. The result handling is done
with <job>.getResult() and catching exceptions.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-09-12 11:55:38 +02:00
Marc Mattmüller 652739e0f0 jobs: added job parameter to force the source revision update
With the latest version where the nightly branch is forwarded to
the build job, the source revision update is no longer necessary.
But in case of a manual trigger of the build job it makes sense
to keep the functionality. Thus, an additional parameter is
introduced to the build target job. With it the nightly job and
the common files are updated too.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-09-11 15:49:16 +02:00
Marc Mattmüller c8b22f8cf5 jobs/updateSrcRev,common: added artifact with branch to use
In the nightly job there might be changes about some source
revisions and thus a new branch is created including a pull
request. The created branch is written to a file and archived
as artifact. This makes it possible to use this branch in a
nightly build for building the targets.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-09-11 10:26:30 +02:00
Marc Mattmüller c79814899b jobs/common: update the yocto target (env.CI_IMAGE)
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-09-04 10:25:29 +02:00
Marc Mattmüller be603724d2 jobs/common: refactored gitCheckout() for using more flexible
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>
2023-08-29 14:40:31 +02:00
Marc Mattmüller 246c859a35 jobs/common: added cleanup function restoring unstaged changes
with the script updating the source revisions some unstaged
changes reside in the repository. A following job will be unable
to succeed as the clone will fail. Thus, adding this function
which now can be used in the specific jobs.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-29 08:53:51 +02:00
Marc Mattmüller 236f4b95d5 jobs: replaced admin_credentials with nmgit_credentials for git access
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-08-28 16:31:49 +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 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 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 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 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 a9e1cdfc2d jobs: added getter for nexus credential ID depending on hostname
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-26 17:04:12 +02:00
Marc Mattmüller 9c939b2c29 docker,jobs: adaption for using pipelines on AWX- and HAC instance
the git credential ID is different for the AWX instance, thus the
jobs are selected according the hostname.
additionally I reordered the seed jobs in nwl-cicd.yaml

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-21 11:03:18 +02:00
Marc Mattmüller 1aea7bf218 jobs: added artifact deployment to nexus
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-06-19 18:33:08 +02:00
Marc Mattmüller 27c7777f79 jobs/common: removed settings for sstate- and equiv server
currently the environment is unclear and is set to ToDo

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-04-25 16:12:31 +02:00
Marc Mattmüller 3e52ea97ed jobs/common: set nwl image for CI
with the current Merge Request there are now 2 images for the NWL.
One is specially for the CI.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-04-25 14:35:11 +02:00
Marc Mattmüller c3056f4cb5 jobs/common: removed residing parallel configuration for auto.conf
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-04-18 09:14:23 +02:00
Marc Mattmüller eb19873605 jobs: adding git credentials and finalized pre-node step
need to clone the repository to load the list of the buid
targets in pre-node step.

added a git credential ID getter to clone repositories.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-04-18 08:47:12 +02:00
Marc Mattmüller 5b22271083 jobs: added first draft of NWL build pipeline
this commit holds additionally a common jenkins file and a
file containing the targets (machines) to build. Latter is
used for the drop-down parameter in the build job.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-04-11 16:33:29 +02:00