Skip to content

Commit 88bc60e

Browse files
Branch was auto-updated.
2 parents 6ee9a26 + 338ea19 commit 88bc60e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Jenkinsfile_nightly

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ withNightlyPipeline(type, product, component) {
4747
env.TEST_URL = "http://rd-location-ref-data-load-aat.service.core-compute-aat.internal"
4848

4949
// Var for testcontainers.org
50-
env.TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX = "hmctspublic.azurecr.io/imported/"
50+
env.TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX = "hmctsprod.azurecr.io/imported/"
5151

5252
overrideVaultEnvironments(vaultOverrides)
5353
loadVaultSecrets(secrets)
@@ -59,6 +59,14 @@ withNightlyPipeline(type, product, component) {
5959
def time = "120"
6060
echo "Waiting ${time} seconds for deployment to complete prior starting functional testing"
6161
sleep time.toInteger() // seconds
62+
63+
// Authenticate Docker to hmctsprod ACR so Testcontainers can pull the Ryuk reaper
64+
// and base images via TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX. Reuses the managed
65+
// identity already established by `az login --identity` earlier in the pipeline.
66+
sh '''
67+
env AZURE_CONFIG_DIR=/opt/jenkins/.azure-nonprod az acr login --name hmctsprod
68+
'''
69+
6270
try {
6371
builder.gradle('functional')
6472
} finally {

0 commit comments

Comments
 (0)