mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-30 08:39:29 +00:00
ci: skip mini-e2e-helm jobs if PR has the 'ci/skip/e2e' label
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
8806d8e69b
commit
199f5e7551
@ -5,6 +5,7 @@ def ci_git_branch = 'ci/centos'
|
|||||||
def git_repo = 'https://github.com/ceph/ceph-csi'
|
def git_repo = 'https://github.com/ceph/ceph-csi'
|
||||||
def ref = "master"
|
def ref = "master"
|
||||||
def git_since = "master"
|
def git_since = "master"
|
||||||
|
def skip_e2e = 0
|
||||||
def doc_change = 0
|
def doc_change = 0
|
||||||
def namespace = 'cephcsi-e2e-' + UUID.randomUUID().toString().split('-')[-1]
|
def namespace = 'cephcsi-e2e-' + UUID.randomUUID().toString().split('-')[-1]
|
||||||
|
|
||||||
@ -21,6 +22,21 @@ node('cico-workspace') {
|
|||||||
changelog: false
|
changelog: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('skip ci/skip/e2e label') {
|
||||||
|
if (params.ghprbPullId == null) {
|
||||||
|
skip_e2e = 1
|
||||||
|
return
|
||||||
|
}
|
||||||
|
skip_e2e = sh(
|
||||||
|
script: "./scripts/get_github_labels.py --id=${ghprbPullId} --has-label=ci/skip/e2e",
|
||||||
|
returnStatus: true)
|
||||||
|
}
|
||||||
|
// if skip_e2e returned 0, do not run full tests
|
||||||
|
if (skip_e2e == 0) {
|
||||||
|
currentBuild.result = 'SUCCESS'
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
stage('checkout PR') {
|
stage('checkout PR') {
|
||||||
if (params.ghprbPullId != null) {
|
if (params.ghprbPullId != null) {
|
||||||
ref = "pull/${ghprbPullId}/head"
|
ref = "pull/${ghprbPullId}/head"
|
||||||
|
Loading…
Reference in New Issue
Block a user