Skip to content

Commit

Permalink
add parralell job
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikpuneet07 committed May 16, 2024
1 parent b44968a commit ad2eadf
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 4 deletions.
54 changes: 50 additions & 4 deletions ps/jenkins/test-ps-innodb-cluster-parallel.groovy
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
library changelog: false, identifier: 'lib@master', retriever: modernSCM([
library changelog: false, identifier: 'lib@add-dist', retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/Percona-Lab/jenkins-pipelines.git'
remote: 'https://github.com/kaushikpuneet07/jenkins-pipelines.git'
]) _

List all_nodes = [
'ubuntu-noble',
'ubuntu-focal',
'ubuntu-jammy',
'debian-10',
'debian-11',
'debian-12',
'centos-7',
'oracle-8',
'oracle-9'
'oracle-9',
'rhel-8',
'rhel-9'
]

List TEST_DISTS = []
Expand Down Expand Up @@ -61,14 +64,17 @@ pipeline {
name: 'TEST_DIST',
choices: [
'all',
'ubuntu-noble',
'ubuntu-focal',
'ubuntu-jammy',
'debian-10',
'debian-11',
'debian-12',
'centos-7',
'oracle-8',
'oracle-9'
'oracle-9',
'rhel-8',
'rhel-9'
],
description: 'Distribution to run test'
)
Expand All @@ -95,6 +101,19 @@ pipeline {

stage("Run parallel") {
parallel {

stage("Ubuntu Noble") {
when {
expression {
TEST_DISTS.contains("ubuntu-noble")
}
}

steps {
runNodeBuild("ubuntu-noble")
}
}

stage("Ubuntu Focal") {
when {
expression {
Expand Down Expand Up @@ -188,6 +207,33 @@ pipeline {

steps {
runNodeBuild("oracle-9")

}
}

stage("Rhel-8") {
when {
expression {
TEST_DISTS.contains("rhel-8")
}
}

steps {
runNodeBuild("rhel-8")

}
}

stage("Rhel-9") {
when {
expression {
TEST_DISTS.contains("rhel-9")
}
}

steps {
runNodeBuild("rhel-9")

}
}
}
Expand Down
3 changes: 3 additions & 0 deletions ps/jenkins/test-ps-innodb-cluster-parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
name: TEST_DIST
choices:
- 'all'
- 'ubuntu-noble'
- 'ubuntu-focal'
- 'ubuntu-jammy'
- 'debian-10'
Expand All @@ -43,6 +44,8 @@
- 'centos-7'
- 'oracle-8'
- 'oracle-9'
- 'rhel-8'
- 'rhel-9'
description: "Distribution to run test"
- choice:
name: INSTALL_REPO
Expand Down

0 comments on commit ad2eadf

Please sign in to comment.