-
Notifications
You must be signed in to change notification settings - Fork 12
/
Jenkinsfile
30 lines (30 loc) · 1.1 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pipeline {
agent any
environment {
IBM_ENTITLEMENT_KEY = credentials('ibm_entitlement_key')
RELEASE_NAME = "qm1"
NAMESPACE = "mq"
STORAGE_CLASS = "ocs-storagecluster-ceph-rbd"
QMGR_NAME = "QM1"
CHANNEL_NAME = "QM1CHL"
LICENSE = "L-RJON-BZFQU2"
METRIC = "VirtualProcessorCore"
USE = "NonProduction"
VERSION = "9.4.0.5-r2"
AVAILABILITY = "SingleInstance"
}
stages {
stage('Pre Deploy') {
steps {
echo 'Pre-Deploy ~ setup configuration before deploy'
sh('./scripts/01-pre-deploy.sh ${IBM_ENTITLEMENT_KEY} ${RELEASE_NAME} ${NAMESPACE}')
}
}
stage('Deploy') {
steps {
echo 'Deploy ~ deploy queue manager'
sh('./scripts/02-deploy.sh ${RELEASE_NAME} ${NAMESPACE} ${STORAGE_CLASS} ${QMGR_NAME} ${CHANNEL_NAME} ${LICENSE} ${METRIC} ${USE} ${VERSION} ${AVAILABILITY}')
}
}
}
}