2020-04-01 11:44:38 +00:00
|
|
|
---
|
|
|
|
- job:
|
|
|
|
name: jjb-deploy
|
|
|
|
project-type: pipeline
|
2020-05-27 13:24:20 +00:00
|
|
|
concurrent: false
|
2020-11-01 11:31:05 +00:00
|
|
|
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
|
2020-05-27 13:24:20 +00:00
|
|
|
properties:
|
|
|
|
- github:
|
|
|
|
url: https://github.com/ceph/ceph-csi
|
|
|
|
- build-discarder:
|
|
|
|
days-to-keep: 7
|
|
|
|
artifact-days-to-keep: 7
|
2020-04-01 11:44:38 +00:00
|
|
|
dsl: |
|
|
|
|
node {
|
2021-05-17 09:35:45 +00:00
|
|
|
stage('build-images') {
|
|
|
|
parallel jjb: {
|
|
|
|
sh "oc start-build --follow jjb"
|
|
|
|
},
|
|
|
|
mirror_images: {
|
|
|
|
sh 'oc start-build --follow mirror-images'
|
|
|
|
}
|
|
|
|
}
|
2020-04-01 11:44:38 +00:00
|
|
|
stage('checkout ci repository') {
|
|
|
|
git url: "${GIT_REPO}", branch: "${GIT_BRANCH}", changelog: false
|
|
|
|
}
|
2020-08-03 15:00:04 +00:00
|
|
|
stage('deployment') {
|
2020-11-01 11:31:05 +00:00
|
|
|
sh "./deploy/jjb.sh --cmd deploy \
|
|
|
|
--GIT_REF ${GIT_BRANCH} --GIT_REPO ${GIT_REPO}"
|
2020-04-01 11:44:38 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-26 15:41:05 +00:00
|
|
|
scm:
|
2020-05-27 13:24:20 +00:00
|
|
|
- git:
|
|
|
|
name: origin
|
2020-11-01 11:31:05 +00:00
|
|
|
url: $GIT_REPO
|
2020-05-27 13:24:20 +00:00
|
|
|
branches:
|
2020-11-01 11:31:05 +00:00
|
|
|
- $GIT_BRANCH
|
2020-04-01 11:44:38 +00:00
|
|
|
triggers:
|
2020-05-26 15:41:05 +00:00
|
|
|
- pollscm:
|
|
|
|
cron: "H/5 * * * *"
|