Commit Graph

55 Commits

Author SHA1 Message Date
Marc Mattmueller 8ceb9fb75b jenkins: added wildcard after machine type for the bootloader image
The bootloader package of HW20 was empty as its namne is postfixed
with -v1 which differs to the other am335x images.

BugzID: 71427

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-05-04 13:18:14 +02:00
Marc Mattmueller a375cef2f4 jenkins: fixed archiving distro version file
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-04-14 13:48:17 +02:00
Marc Mattmueller 5ab5c23e79 jenkins: fct builds do not carry the 'Test<nbr>' postfix in its version
BugzID: 70652

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-03-09 09:42:47 +01:00
Marc Mattmüller 7c57231fcf jenkins/collect revs: replaced interactive clear with redirection to /dev/null 2021-02-01 14:26:35 +01:00
Marc Mattmueller bc8453960c jenkins: added parameter to collecte the revisions used
BugzID: 69785

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-02-01 11:19:59 +01:00
Marc Mattmueller 9c611146e3 jenkins: do not filter and sort the output of auto revision output
BugzID: 69785

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-02-01 11:19:59 +01:00
Marc Mattmueller 5359b74d30 jenkins: creating revision files and archive them
BugzID: 69785

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-02-01 11:19:59 +01:00
Alexandre Bard 42d2fcc48a Jenkinsfile: Fix starting build job directly 2021-01-19 09:18:31 +01:00
Alexandre Bard 20c73a4b9c jenkinsfile: Add license workaround for gpsd
Since rework of gpsd recipes, this license is also often missing.
Temporary work around until we figure out the root cause.
2021-01-19 08:33:32 +01:00
Alexandre Bard fa0a14b423 Jenkinsfile: Update fitImage paths
Since update to dunfell, the artifacts build with kernel variant (like
our linux-netmodule-initramfs and our fct-linux) are deployed in a
subdirectory with the name of the kernel, to avoid confusion with
artifacts built with the main kernel.

BugzID: 69636
2021-01-17 13:12:49 +01:00
Marc Mattmueller c36d79297a jenkins: do no longer remove the distro version file
as the distro version file is now also used in the nightly, it
will be overwritten and no longer be removed after a build.

BugzID: 69736

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-14 17:46:54 +01:00
Marc Mattmueller 4080f1e212 jenkins: introduced the distro version file also for the nightly build
As the version string for a nightly build contains a Test POSTFIX,
similar to the release build the version string needs to be provided
to yocto.

BugzID: 69736

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-14 16:11:06 +01:00
Marc Mattmueller 6b0bd6ef95 jenkins: changed nightly built image to test release
The version string of a nightly build (not a release build) is
adapted to a test release including the build number of the
top job, e.g.
    previously: 1.1.3-5-gca0e0ff-dirty
    now:        1.1.3.Test127-5-gca0e0ff-dirty

BugzID: 69736

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2021-01-14 11:12:31 +01:00
Alexandre Bard fbb569de68 Jenkinsfile: Add back workaround for license error
This time it is a bit smarter and trigger the licenses deploiement only
when it is really missing. This should avoid too long build time.

BugzID: 69247
2020-12-16 13:51:19 +01:00
Alexandre Bard 975901eebe Revert "jenkinsfile: Force ostree-kernel-initramfs deploiment"
This reverts commit 447329c279.

This commit is not needed anymore, the build is now stable without
deploying the licenses everytime.

BugzID: 69247
2020-12-14 13:44:50 +01:00
Marc Mattmueller f8e353fa59 jenkins: separated git prune and git fetch tags
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-12-03 12:48:32 +01:00
Marc Mattmueller 40d2f5ec14 jenkins: added git prune option when fetching tags
BugzID: 69317

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-12-02 18:14:07 +01:00
Alexandre Bard 447329c279 jenkinsfile: Force ostree-kernel-initramfs deploiment
For whatever reason, this license is sometimes missing, leading to a
build failure.

BugzID: 69247
2020-11-30 11:13:16 +01:00
Marc Mattmueller 512b800e59 jenkins: changed virtual/kernel to virtual/netmodule-image for fitimage
BugzID: 69147

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-27 14:56:17 +01:00
Marc Mattmueller 3d76f212bf jenkins: used writeFile for the distro version file and clean only this at the end
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-13 15:50:21 +01:00
Marc Mattmueller aaf1f04ecf jenkins: fixed submodule init
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-12 08:14:12 +01:00
Marc Mattmueller 28a8e0d127 jenkins: git init recursive and fetch tags before building version
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-11 18:59:27 +01:00
Marc Mattmueller 122ddb921a jenkins: merged wlan layser submodule and a submodule init step 2020-11-11 16:04:04 +01:00
Marc Mattmueller 80ec9abe37 jenkins: initialized submodules before building
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-11 15:33:34 +01:00
Marc Mattmueller dae9a1269a jenkins: added hw20 to build job and added a selct to MACHINE_TYPE
HW20 is needed for the FCT build.
Additionally there shall no build job launched when the pipeline
is scanned and new parameters are needed to setup. Therefore the
'select...' was added to the MACHINE_TYPE.

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-11 13:59:07 +01:00
Marc Mattmueller 7a50d15477 jenkins: do not changed build version when RLS_VERSION is latest
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-11 11:03:15 +01:00
Marc Mattmueller 2111fba848 jenkins: cleaned submodule with changed distro version
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-11 10:59:34 +01:00
Marc Mattmueller 76bd35e709 jenkins: refactored submodule handling and set distro version on release
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-11 10:20:46 +01:00
Marc Mattmueller f735db2610 jenkins: check version also on latest instead of only empty
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-11 09:34:53 +01:00
Marc Mattmueller ee9eb887c4 jenkins: fixed replacement of version string
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-09 18:59:34 +01:00
Marc Mattmueller 075bda1cad jenkins: fixed function call
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-09 18:47:04 +01:00
Marc Mattmueller 26e565bb45 jenkins: changed boolean parameter RELEASE_BUILD with string RLS_VERSION
for having the possibility to tag the build after a successful test
result we need to define the release build otherwise

BugzID: 66460

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-11-09 18:13:14 +01:00
Marc Mattmueller 0fd66a4f8d jenkins: adpapt logrotator in build discarder
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-10-13 10:10:13 +02:00
Alexandre Bard 927759b9b6 Jenkinsfile: Fix release image archiving 2020-10-09 11:54:32 +02:00
Marc Mattmüller 2dcd22de7a jenkins: removed lock since there are concurent builds disabled 2020-10-08 14:57:16 +02:00
Marc Mattmueller 6d726a09ae jenkins: added lock for build
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-10-08 11:10:02 +02:00
Alexandre Bard bc92da5926 Jenkinsfile: Fix ostree_repo archiving 2020-09-29 13:57:00 +02:00
Alexandre Bard be7e157b41 Jenkinsfile: Add support for fct and minimal image 2020-09-29 11:59:10 +02:00
Alexandre Bard 391382b5f3 Jenkinsfile: Add support for other HWs 2020-09-29 11:57:52 +02:00
Alexandre Bard adb14059cd Fix bootloader build/archiving 2020-09-28 14:54:55 +02:00
Marc Mattmueller 58f8947c79 jenkins: renamed deploy to archive, archive ostree tarball separately
Additionally we do not want to keep the builds forever on jenkins

BugzID: 66167

Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2020-09-25 10:56:46 +02:00
Alexandre Bard 5df81d128a Jenkinsfile: Remove tmp directory when done 2020-09-17 11:01:21 +02:00
Alexandre Bard 41a04188a2 Jenkinsfile: Create artifacts directory 2020-09-16 11:44:50 +02:00
Alexandre Bard 12e9256dcf Fix buildhistory path 2020-09-16 09:08:06 +02:00
Alexandre Bard b882c394fa Jenkinsfile: Force building on lxbuild4 2020-09-14 14:32:21 +02:00
Alexandre Bard 5a7ac164d3 Jenkinsfile: Show machine and image type in job name 2020-09-12 19:39:33 +02:00
Alexandre Bard 9d5be70994 Jenkinsfile: Handle special case for release image type
The "release" image is the default image without any suffix. ie:
netmodule-linux-image. It needs a special handling because the name of
the image type ('release') does not match with the image suffix
(nothing).
2020-09-12 19:30:14 +02:00
Alexandre Bard 944ee54270 Jenkins: Don't remove ostree repo 2020-09-11 20:57:33 +02:00
Alexandre Bard 293b9e1dd1 Jenkinsfile: Remove post stage 2020-09-11 20:28:30 +02:00
Alexandre Bard 3d051fdf38 Jenkinsfile: Fix path to buildhistory script 2020-09-11 16:36:38 +02:00