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>
german umlauts caused an issue and let the job crash. Thus the
umlaut is escaped with the unicode pattern. Additionally there was
a residual of an old variable name due to a refactoring.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
the update source revision job is important for a successful nightly
build- Thus the nightly job triggers this job and uses the returned
branch for the build target job.
With this we are able to pass the nightly without already merge a
pull request for new source revisions.
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>
Implemented creating a pull request using REST API after pushing
the changes (new source revisions) to a nightly branch.
Additionally set the default value of the clean build parameter
to true. This is necessary to have per default a proper operation
of this job
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
The branch for the jobs to seed was set to main but we might want
to seed the branch develop. Thus the parameter of the seed job
replaces the hardcoded main.
I am not sure if this solution works but wihtout trying we won't
know :-D
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>
A request was to have the update source revision part in a separate
job as in OEM Linux. This commit seeds a new job currently with
an empty skeleton.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
with all the changes we have had regarding seed job integration in
the HAC instance the job name changed. Thus, fixing the name when
triggering the build job.
Additionally the script updating the source revisions leaves some
unstaged changes which is resolved by adding the clean-up of the
repository after building all targets.
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>
On the HAC instance, we currently do not want the documentation
job of the work of Marc Mattmueller, thus this job is removed.
Additionally the git credential ID differs between HAC- and ansible
instance. Therefore we set on this branch the credentials of the
HAC instance.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
the reason is simple: There are currently still two AD's available
for HAC and Netmodule, i.e. the LDAP connection works only for
HAC employees.
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>
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>
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>
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>