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>
when seeding a branch other than the default one the poll
detects a SCM change and triggers right after a new seed job
which might revert the jobs seeded by the previous job run.
With this behavior it won't be possible to seed a specific
and run the intentionaly seeded jobs.
Thus, this commit disables SCM poll.
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 ansible instance we saw that the seed job concept was working.
To be as felxible as possible as well on the HAC instance this
concept shall be integrated into this instance. Therefore this commit
holds all the steps so that the yocto build pipeline is starting to
build.
NOTE: currently the NWL project is in progress and the build is not
succeeding.
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 playbooks shall only run on the hosts provided by the variable
target.
NOTE: the default target is set within the job templates
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 the ssh key of nginx available in the docker instance, the
manage script needed to be adapted as each key was added with a
single mount command.
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>
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>
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>
this job is responsible to build a yocto target, syncing the sstate
cache and deploying the artifact to nexus.
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>