Commit Graph

13 Commits

Author SHA1 Message Date
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 180fd4c3b3 jobs/buildAll: removed useless statement about cleaning repo
there is no repository to clean in the nightly pipeline.

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
2023-09-12 12:49:46 +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 b40c884da2 jobs/buildAll: build clean per default, added stage updating src rev
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>
2023-09-11 10:45:20 +02:00
Marc Mattmüller a138da021e jobs/buildAll: fixed build yocto job name and added clean-up of repo
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>
2023-08-29 09:01:16 +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 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 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 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 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 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