-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.deploy.wget2
138 lines (137 loc) · 6.58 KB
/
Jenkinsfile.deploy.wget2
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/* Wget2 deploy pipeline. */
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
stage('src') {
steps {
lock('wget-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=wget2',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-src',
'TYPE=src']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy normal.tar.groovy'
}
}
}
}
stage('src-ssl1.1') {
steps {
lock('wget-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=wget2-ssl1.1',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-src',
'TYPE=src']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy normal.tar.groovy'
}
}
}
}
stage('src-ssl3.0') {
steps {
lock('wget-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=wget2-ssl3.0',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-src',
'TYPE=src']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy normal.tar.groovy'
}
}
}
}
stage('nsx') {
steps {
lock('wget-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=wget2',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L23.08 and above only',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=wget2_install-2-1-0html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nsx-ssl1.1') {
steps {
lock('wget-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=wget2-ssl1.1',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L19.08/J06.22 and above only',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=wget2_install-2-1-0html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../Ituglib_Build" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nsx-ssl3.0') {
steps {
lock('wget-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=wget2-ssl3.0',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L19.08/J06.22 and above only',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=wget2_install-2-1-0html']) {
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]'
}
}
}