-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.deploy.gmake
59 lines (58 loc) · 2.8 KB
/
Jenkinsfile.deploy.gmake
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
/* GMake deploy pipeline. */
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
stage('nse') {
steps {
lock('gmake-deploy') {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/T1275L39/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=gmake',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nse',
'TYPE=TNS/E',
'NONSTOP_EXTENSIONS=L19.08/J06.22 and above only',
'README_FILE=gmake_install.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy platform.pak.groovy'
sh 'sudo rm -f /G/data05/jenkins/gmake /G/data05/jenkins/temppak'
}
}
}
}
stage('nsx') {
steps {
lock('gmake-deploy') {
withEnv(['PATH=/usr/coreutils/bin:/usr/local/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/T1275L39/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=gmake',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L19.08/J06.22 and above only',
'README_FILE=gmake_install.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy platform.pak.groovy'
sh 'sudo rm -f /G/data05/jenkins/gmake /G/data05/jenkins/temppak'
}
}
}
}
}
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]'
}
}
}