ci: move the Jenkins Job Builder .yaml files under jobs/

There is a new .commitlintrc.yml file in the root of the repository.
This causes jenkins-job-builder to complains that the file is not
confirm the Jenkins Job Builder format/specification.

    jenkins_jobs.errors.JenkinsJobsException: The topmost collection in file '/opt/build/.commitlintrc.yml' must be a list, not a <class 'collections.OrderedDict'>

Move all Jenkins Job Builder .yaml files to jobs/ so that all the
Jenkins job configurations are kept together without other files.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-05-27 13:16:08 +02:00
parent b5036489c8
commit 650d749d28
6 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ projects branches.
As an example, the `containerized-tests` Jenkins job consists out of the
following files:
- `containerized-tests.yaml` is a [Jenkins Job Builder](jjb) configuration
- `jobs/containerized-tests.yaml` is a [Jenkins Job Builder](jjb) configuration
that describes the events when the job should get run and fetches the
`.groovy` file from the git repository/branch
- `containerized-tests.groovy` is the [Jenkins Pipeline](pipeline) that

View File

@ -2,7 +2,7 @@ WORKDIR ?= $(CURDIR)/../
OUTPUT ?= $(WORKDIR)/_output/
test:
jenkins-jobs test -o $(OUTPUT) $(WORKDIR)
jenkins-jobs test -o $(OUTPUT) $(WORKDIR)/jobs
deploy:
jenkins-jobs update $(WORKDIR)
jenkins-jobs update $(WORKDIR)/jobs