mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
a75430ce21
When the `ci/centos` branch has been merged, the container images that are built from it may need to be rebuilt. Instead of conditionally rebuilding images only on a change, just rebuild them always, as there are very few changes in the CI branch anyway. Signed-off-by: Niels de Vos <ndevos@redhat.com>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
---
|
|
- job:
|
|
name: jjb-deploy
|
|
project-type: pipeline
|
|
concurrent: false
|
|
parameters:
|
|
- string:
|
|
name: GIT_REPO
|
|
default: http://github.com/ceph/ceph-csi
|
|
description: The git repo url
|
|
- string:
|
|
name: GIT_BRANCH
|
|
default: ci/centos
|
|
description: The git branch
|
|
properties:
|
|
- github:
|
|
url: https://github.com/ceph/ceph-csi
|
|
- build-discarder:
|
|
days-to-keep: 7
|
|
artifact-days-to-keep: 7
|
|
dsl: |
|
|
node {
|
|
stage('build-images') {
|
|
parallel jjb: {
|
|
sh "oc start-build --follow jjb"
|
|
},
|
|
mirror_images: {
|
|
sh 'oc start-build --follow mirror-images'
|
|
}
|
|
}
|
|
stage('checkout ci repository') {
|
|
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
|
|
}
|
|
stage('deployment') {
|
|
sh "./deploy/jjb.sh --cmd deploy \
|
|
--GIT_REF ${GIT_BRANCH} --GIT_REPO ${GIT_REPO}"
|
|
}
|
|
}
|
|
scm:
|
|
- git:
|
|
name: origin
|
|
url: $GIT_REPO
|
|
branches:
|
|
- $GIT_BRANCH
|
|
triggers:
|
|
- pollscm:
|
|
cron: "H/5 * * * *"
|