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

@ -0,0 +1,34 @@
---
- job:
name: ci-job-validation
project-type: pipeline
sandbox: true
concurrent: true
properties:
- github:
url: https://github.com/ceph/ceph-csi
- build-discarder:
days-to-keep: 7
artifact-days-to-keep: 7
pipeline-scm:
scm:
- git:
url: https://github.com/ceph/ceph-csi
branches:
- ci/centos
script-path: ci-job-validation.groovy
lightweight-checkout: true
triggers:
- github-pull-request:
status-context: ci/centos/job-validation
trigger-phrase: '/(re)?test ((all)|(ci/centos/job-validation))'
permit-all: true
# TODO: set github-hooks to true when it is configured in GitHub
github-hooks: false
cron: 'H/5 * * * *'
white-list-target-branches:
- ci/centos
admin-list:
- nixpanic
org-list:
- ceph

View File

@ -0,0 +1,34 @@
---
- job:
name: containerized-tests
project-type: pipeline
sandbox: true
concurrent: true
properties:
- github:
url: https://github.com/ceph/ceph-csi
- build-discarder:
days-to-keep: 7
artifact-days-to-keep: 7
pipeline-scm:
scm:
- git:
url: https://github.com/ceph/ceph-csi
branches:
- ci/centos
script-path: containerized-tests.groovy
lightweight-checkout: true
triggers:
- github-pull-request:
status-context: ci/centos/containerized-tests
trigger-phrase: '/(re)?test ((all)|(ci/centos/containerized-tests))'
permit-all: true
# TODO: set github-hooks to true when it is configured in GitHub
github-hooks: false
cron: 'H/5 * * * *'
black-list-target-branches:
- ci/centos
admin-list:
- nixpanic
org-list:
- ceph

24
jobs/jjb-deploy.yaml Normal file
View File

@ -0,0 +1,24 @@
---
- job:
name: jjb-deploy
project-type: pipeline
sandbox: true
dsl: |
def GIT_REPO = 'http://github.com/ceph/ceph-csi'
def GIT_BRANCH = 'ci/centos'
node {
stage('checkout ci repository') {
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
}
stage('validation') {
sh './deploy/jjb.sh deploy'
}
}
scm:
git:
url: https://github.com/ceph/ceph-csi
branches:
- ci/centos
triggers:
- pollscm:
cron: "H/5 * * * *"

42
jobs/jjb-validate.yaml Normal file
View File

@ -0,0 +1,42 @@
---
- job:
name: jjb-validate
project-type: pipeline
sandbox: true
concurrent: true
properties:
- github:
url: https://github.com/ceph/ceph-csi
- build-discarder:
days-to-keep: 7
artifact-days-to-keep: 7
dsl: |
def GIT_REPO = 'http://github.com/ceph/ceph-csi'
def GIT_BRANCH = 'ci/centos'
if (params.ghprbPullId != null) {
GIT_BRANCH = "pr/${ghprbPullId}/head"
}
node {
stage('checkout ci repository') {
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
}
stage('validation') {
sh './deploy/jjb.sh validate'
}
}
triggers:
- github-pull-request:
status-context: ci/centos/jjb-validate
trigger-phrase: '/(re)?test ((all)|(ci/centos/jjb-validate))'
permit-all: true
# TODO: set github-hooks to true when it is configured in GitHub
github-hooks: false
cron: 'H/5 * * * *'
white-list-target-branches:
- ci/centos
admin-list:
- nixpanic
org-list:
- ceph