-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile.deploy.openssh
185 lines (184 loc) · 9.2 KB
/
Jenkinsfile.deploy.openssh
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
/* OpenSSH deploy pipeline. */
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
stage('src') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-src',
'TYPE=src']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../../Ituglib_Build/workspace" && \
${GROOVY_PATH}/groovy normal.tar.groovy'
}
}
}
}
stage('src-ssl1.1') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh-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/workspace" && \
${GROOVY_PATH}/groovy normal.tar.groovy'
}
}
}
}
stage('nse') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nse',
'TYPE=TNS/E',
'NONSTOP_EXTENSIONS=L20.10/J06.22+ and OpenSSL 1.0.2',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=openssh_install-1.0.2.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../../Ituglib_Build/workspace" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nse-ssl1.1') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh-ssl1.1',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nse',
'TYPE=TNS/E',
'NONSTOP_EXTENSIONS=L20.10/J06.22+ and OpenSSL 1.1.1',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=openssh_install-1.1.1.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../../Ituglib_Build/workspace" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nse-ssl3.0') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh-ssl3.0',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nse',
'TYPE=TNS/E',
'NONSTOP_EXTENSIONS=L20.10/J06.22+ and OpenSSL 3.0',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=openssh_install-3.0.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../../Ituglib_Build/workspace" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nsx') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L20.10/J06.22+ and OpenSSL 1.0.2',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=openssh_install-1.0.2.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../../Ituglib_Build/workspace" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nsx-ssl1.1') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh-ssl1.1',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L20.10/J06.22+ and OpenSSL 1.1.1',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=openssh_install-1.1.1.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../../Ituglib_Build/workspace" && \
${GROOVY_PATH}/groovy platform.tar.groovy'
}
}
}
}
stage('nsx-ssl3.0') {
steps {
lock('openssh-deploy') {
withEnv(['PATH=/usr/local/bin:/usr/coreutils/bin:/usr/bin:/bin:/usr/ucb',
'_RLD_LIB_PATH=/usr/tandem/jdbcMx/current/lib:/usr/local/lib',
'GROOVY_PATH=/home/jenkinstag/.sdkman/candidates/groovy/current/bin/',
'BASENAME=openssh-ssl3.0',
'DIST=/web/stage',
'DEST=/web/opensrc',
'SCHEMA=ITUG.OPENLIB',
'SUFFIX=-nsx',
'TYPE=TNS/X',
'NONSTOP_EXTENSIONS=L20.10/J06.22+ and OpenSSL 3.0',
'DEPENDENCIES=Check Readme file for older RVUs',
'README_FILE=openssh_install-3.0.html']) {
sh 'sudo rm -rf /tmp/${BASENAME}'
sh 'cd "${WORKSPACE}/../../Ituglib_Build/workspace" && \
${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 HPITUG] ${currentBuild.currentResult}: job ${env.JOB_NAME}", to: '[email protected]'
}
}
}