-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.deploy.libpsl
95 lines (93 loc) · 4.05 KB
/
Jenkinsfile.deploy.libpsl
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* Xz deploy pipeline. */
def deployTarget
def websiteTarget
def jdbcMxLibrary
def groovyRoot
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
stage('setup') {
steps {
script {
load "../Ituglib_Build/Jenkinsfile.globals.all"
load "../Ituglib_Build/Jenkinsfile.globals.nsx"
deployTarget = "${DEPLOY_TARGET}"
websiteTarget = "${WEBSITE_TARGET}"
jdbcMxLibrary = "${JDBCMX_LIB}"
groovyRoot="${GROOVY_ROOT}"
}
}
}
stage('nse') {
steps {
lock('libpsl-deploy') {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
"_RLD_LIB_PATH=${jdbcMxLibrary}:/usr/local/lib",
"GROOVY_PATH=${groovyRoot}/bin",
'BASENAME=libpsl',
"DIST=${deployTarget}",
"DEST=${websiteTarget}",
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nse',
'TYPE=TNS/E',
'NONSTOP_EXTENSIONS=L19.08/J06.22 and above only',
'DEPENDENCIES=Check Readme file for older RVUs']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nsx') {
steps {
lock('libpsl-deploy') {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
"_RLD_LIB_PATH=${jdbcMxLibrary}:/usr/local/lib",
"GROOVY_PATH=${groovyRoot}/bin",
'BASENAME=libpsl',
"DIST=${deployTarget}",
"DEST=${websiteTarget}",
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L19.08/J06.22 and above only',
'DEPENDENCIES=Check Readme file for older RVUs']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nsx-64') {
steps {
lock('libpsl-deploy') {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
"_RLD_LIB_PATH=${jdbcMxLibrary}:/usr/local/lib",
"GROOVY_PATH=${groovyRoot}/bin",
'BASENAME=libpsl-64',
"DIST=${deployTarget}",
"DEST=${websiteTarget}",
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L19.08/J06.22 and above only',
'DEPENDENCIES=Check Readme file for older RVUs']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
}
post {
always {
mail bcc: '', body: "${currentBuild.currentResult}: Job ${env.JOB_NAME} build ${env.BUILD_NUMBER}\nDuration: ${currentBuild.durationString}\nChange: ${currentBuild.changeSets}\n More info at: ${env.BUILD_URL}", cc: '', from: '[email protected]', replyTo: '', subject: "[Jenkins Stage TCMVNS] ${currentBuild.currentResult}: job ${env.JOB_NAME}", to: '[email protected]'
}
}
}