You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//if dockerImageType contains "ubi9" then use nightly-rhel9 suffix
154
+
if (dockerImageType.contains("ubi9")) {
155
+
RPMsuffix=".nightly-rhel9"
156
+
} else {
157
+
RPMsuffix=".nightly-rhel"
158
+
}
128
159
RPMbranch="b11"
129
160
RPMversion="11.3"
130
161
}
131
162
elseif (marklogicVersion =="12") {
132
-
RPMsuffix=".nightly-rhel"
163
+
//if dockerImageType contains "ubi9" then use nightly-rhel9 suffix
164
+
if (dockerImageType.contains("ubi9")) {
165
+
RPMsuffix=".nightly-rhel9"
166
+
} else {
167
+
RPMsuffix=".nightly-rhel"
168
+
}
133
169
RPMbranch="b12"
134
170
RPMversion="12.0"
135
171
}
@@ -168,7 +204,7 @@ void buildDockerImage() {
168
204
}
169
205
170
206
voidpullUpgradeDockerImage() {
171
-
if (dockerImageType =="ubi-rootless" ) {
207
+
if (dockerImageType =="ubi-rootless"&& params.DOCKER_TESTS!="true") {
172
208
sh """
173
209
echo 'dockerImageType is set to ubi-rootless, skipping this stage and Docker upgrade test.'
174
210
"""
@@ -217,16 +253,14 @@ void lint() {
217
253
218
254
voidvulnerabilityScan() {
219
255
sh """
220
-
make scan current_image=marklogic/marklogic-server-${dockerImageType}:${marklogicVersion}-${env.dockerImageType}-${env.dockerVersion} Jenkins=true
221
-
grep \'High\\|Critical\' scan-server-image.txt
256
+
make scan current_image=marklogic/marklogic-server-${dockerImageType}:${marklogicVersion}-${env.dockerImageType}-${env.dockerVersion} docker_image_type=${dockerImageType} Jenkins=true
string(name: 'emailList', defaultValue: emailList, description: 'List of email for build notification', trim: true)
299
-
string(name: 'dockerVersion', defaultValue: '2.0.1', description: 'ML Docker version. This version along with ML rpm package version will be the image tag as {ML_Version}_{dockerVersion}', trim: true)
300
-
choice(name: 'dockerImageType', choices: 'ubi-rootless\nubi\ncentos', description: 'Platform type for Docker image. Will be made part of the docker image tag')
358
+
string(name: 'dockerVersion', defaultValue: '2.1.0', description: 'ML Docker version. This version along with ML rpm package version will be the image tag as {ML_Version}_{dockerVersion}', trim: true)
359
+
choice(name: 'dockerImageType', choices: 'ubi-rootless\nubi\nubi9-rootless\nubi9', description: 'Platform type for Docker image. Will be made part of the docker image tag')
301
360
string(name: 'upgradeDockerImage', defaultValue: '', description: 'Docker image for testing upgrades. Defaults to ubi image if left blank.\n Currently upgrading to ubi-rotless is not supported hence the test is skipped when ubi-rootless image is provided.', trim: true)
302
361
choice(name: 'marklogicVersion', choices: '11\n12\n10', description: 'MarkLogic Server Branch. used to pick appropriate rpm')
303
362
string(name: 'ML_RPM', defaultValue: '', description: 'URL for RPM to be used for Image creation. \n If left blank nightly ML rpm will be used.\n Please provide Jenkins accessible path e.g. /project/engineering or /project/qa', trim: true)
304
363
string(name: 'ML_CONVERTERS', defaultValue: '', description: 'URL for the converters RPM to be included in the image creation \n If left blank the nightly ML Converters Package will be used.', trim: true)
305
364
booleanParam(name: 'PUBLISH_IMAGE', defaultValue: false, description: 'Publish image to internal registry')
0 commit comments