Skip to content

Commit 440cd2c

Browse files
PSMDB-1093 full pipeline for tarballs, packages and docker images in the testing area (#1869)
1 parent efe879e commit 440cd2c

6 files changed

+62
-4
lines changed

Diff for: psmdb/jenkins/get-psmdb-branches-4.2.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pipeline {
8080
}
8181
slackNotify("#releases", "#00FF00", "[${JOB_NAME}]: new changes for branch ${BRANCH_NAME}[commit id: ${COMMIT_ID}] were detected, build will be started soon")
8282
build job: 'psmdb42-autobuild-RELEASE', parameters: [string(name: 'GIT_BRANCH', value: BRANCH_NAME), string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE), string(name: 'COMPONENT', value: 'testing')]
83-
83+
build job: 'psmdb-multijob-testing', propagate: false, wait: false, parameters: [string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE)]
8484
}
8585
}
8686
stage('Build skipped') {

Diff for: psmdb/jenkins/get-psmdb-branches-4.4.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pipeline {
8787
}
8888
slackNotify("#releases", "#00FF00", "[${JOB_NAME}]: new changes for branch ${BRANCH_NAME}[commit id: ${COMMIT_ID}] were detected, build will be started soon")
8989
build job: 'psmdb44-autobuild-RELEASE', parameters: [string(name: 'GIT_BRANCH', value: BRANCH_NAME), string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE), string(name: 'MONGO_TOOLS_TAG', value: MONGO_TOOLS_TAG), string(name: 'COMPONENT', value: 'testing')]
90-
90+
build job: 'psmdb-multijob-testing', propagate: false, wait: false, parameters: [string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE)]
9191
}
9292
}
9393
stage('Build skipped') {

Diff for: psmdb/jenkins/get-psmdb-branches-5.0.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pipeline {
8787
}
8888
slackNotify("#releases-ci", "#00FF00", "[${JOB_NAME}]: new changes for branch ${BRANCH_NAME}[commit id: ${COMMIT_ID}] were detected, build will be started soon")
8989
build job: 'psmdb50-autobuild-RELEASE', parameters: [string(name: 'GIT_BRANCH', value: BRANCH_NAME), string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE), string(name: 'MONGO_TOOLS_TAG', value: MONGO_TOOLS_TAG), string(name: 'COMPONENT', value: 'testing')]
90-
90+
build job: 'psmdb-multijob-testing', propagate: false, wait: false, parameters: [string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE)]
9191
}
9292
}
9393
stage('Build skipped') {

Diff for: psmdb/jenkins/get-psmdb-branches-6.0.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pipeline {
8787
}
8888
slackNotify("#releases-ci", "#00FF00", "[${JOB_NAME}]: new changes for branch ${BRANCH_NAME}[commit id: ${COMMIT_ID}] were detected, build will be started soon")
8989
build job: 'psmdb60-autobuild-RELEASE', parameters: [string(name: 'GIT_BRANCH', value: BRANCH_NAME), string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE), string(name: 'MONGO_TOOLS_TAG', value: MONGO_TOOLS_TAG), string(name: 'COMPONENT', value: 'testing')]
90-
90+
build job: 'psmdb-multijob-testing', propagate: false, wait: false, parameters: [string(name: 'PSMDB_VERSION', value: VERSION), string(name: 'PSMDB_RELEASE', value: RELEASE)]
9191
}
9292
}
9393
stage('Build skipped') {

Diff for: psmdb/psmdb-multijob-testing.groovy

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
library changelog: false, identifier: "lib@master", retriever: modernSCM([
2+
$class: 'GitSCMSource',
3+
remote: 'https://github.com/Percona-Lab/jenkins-pipelines.git'
4+
])
5+
6+
pipeline {
7+
agent {
8+
label 'docker'
9+
}
10+
environment {
11+
PATH = '/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin'
12+
}
13+
parameters {
14+
string(name: 'PSMDB_VERSION', defaultValue: '4.4.17', description: 'PSMDB Version')
15+
string(name: 'PSMDB_RELEASE', defaultValue: '17', description: 'PSMDB Release')
16+
}
17+
options {
18+
disableConcurrentBuilds()
19+
}
20+
stages {
21+
stage ('Run functional tests on tarballs') {
22+
steps {
23+
script {
24+
// path https://downloads.percona.com/downloads/TESTING/psmdb-4.4.17/percona-server-mongodb-4.4.17-17-x86_64.glibc2.17-minimal.tar.gz
25+
def tarball = 'https://downloads.percona.com/downloads/TESTING/psmdb-' + params.PSMDB_VERSION + '/percona-server-mongodb-' + params.PSMDB_VERSION + '-' + params.PSMDB_RELEASE + '-x86_64.glibc2.17-minimal.tar.gz'
26+
build job: 'psmdb-tarball-functional', propagate: false, wait: true, parameters: [ string(name: 'TARBALL', value: tarball), string(name: 'TESTING_BRANCH', value: "main") ]
27+
}
28+
}
29+
}
30+
stage ('Run functional tests on packages') {
31+
steps {
32+
build job: 'psmdb-parallel', parameters: [ string(name: 'REPO', value: "testing"), string(name: 'PSMDB_VERSION', value: params.PSMDB_VERSION ), string(name: 'ENABLE_TOOLKIT', value: "false"), string(name: 'TESTING_BRANCH', value: "main") ]
33+
}
34+
}
35+
stage ('Build docker images and check for vulnerabilities') {
36+
steps {
37+
script {
38+
def version = params.PSMDB_VERSION + '-' + params.PSMDB_RELEASE
39+
build job: 'psmdb-docker', parameters: [string(name: 'PSMDB_REPO', value: "testing"), string(name: 'PSMDB_VERSION', value: version ), string(name: 'LATEST', value: "no") ]
40+
}
41+
}
42+
}
43+
}
44+
}

Diff for: psmdb/psmdb-multijob-testing.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
- job:
2+
name: psmdb-multijob-testing
3+
project-type: pipeline
4+
description: |
5+
Do not edit this job through the web!
6+
pipeline-scm:
7+
scm:
8+
- git:
9+
url: https://github.com/Percona-Lab/jenkins-pipelines.git
10+
branches:
11+
- 'master'
12+
wipe-workspace: false
13+
lightweight-checkout: true
14+
script-path: psmdb/psmdb-multijob-testing.groovy

0 commit comments

Comments
 (0)