Skip to content

Commit afd1854

Browse files
enable fortify failure (#2447)
* enable fortify failure * Update Jenkinsfile_CNP * Update Jenkinsfile_nightly --------- Co-authored-by: ankita-srivastava009 <[email protected]>
1 parent 5e64e79 commit afd1854

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Jenkinsfile_CNP

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ env.BEFTA_RETRY_MAX_ATTEMPTS = "3"
112112
env.BEFTA_RETRY_STATUS_CODES = "500,502,503,504"
113113
env.BEFTA_RETRY_MAX_DELAY = "1000"
114114
env.BEFTA_RETRY_NON_RETRYABLE_HTTP_METHODS = "POST,PUT"
115+
// Prevent Docker hub rate limit errors by ensuring that testcontainers uses images from hmctspublic ACR
116+
env.TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX = "hmctspublic.azurecr.io/imported/"
115117

116118
withPipeline(type, product, component) {
117119
onMaster {

Jenkinsfile_nightly

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def vaultOverrides = [
8181
// vars needed for functional tests
8282
// Assume a feature build branched off 'develop', with dependencies develop-to-develop.
8383
env.TEST_URL = "http://ccd-data-store-api-aat.service.core-compute-aat.internal"
84+
// Prevent Docker hub rate limit errors by ensuring that testcontainers uses images from hmctspublic ACR
85+
env.TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX = "hmctspublic.azurecr.io/imported/"
8486

8587
// Other env variables needed for BEFTA.
8688
env.BEFTA_S2S_CLIENT_ID = "ccd_gw"

build.gradle

-2
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,6 @@ task fortifyScan(type: JavaExec) {
807807
mainClass = "uk.gov.hmcts.fortifyclient.FortifyClientMainApp"
808808
classpath += sourceSets.test.runtimeClasspath
809809
jvmArgs = ['--add-opens=java.base/java.lang.reflect=ALL-UNNAMED']
810-
// The line below prevents the build from failing if the Fortify scan detects issues
811-
ignoreExitValue = true
812810
}
813811

814812
idea {

0 commit comments

Comments
 (0)