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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>