Skip to content

Commit 291ab21

Browse files
authored
Merge pull request #2489 from cyberark/857-registry-ipmanager
Use IPManager for Azure Aagent Registry Access
2 parents ccd6771 + 6bd3a4e commit 291ab21

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ pipeline {
375375

376376
steps {
377377
unstash 'version_info'
378+
// Grant access to this Jenkins agent's IP to AWS security groups
379+
// This is required for access to the internal docker registry
380+
// from outside EC2.
381+
grantIPAccess()
378382
sh(
379383
'summon -f ci/test_suites/authenticators_azure/secrets.yml ' +
380384
'ci/test authenticators_azure'
@@ -392,6 +396,10 @@ pipeline {
392396
cucumber_results*.json
393397
'''
394398
)
399+
// Remove this Agent's IP from IPManager's prefix list
400+
// There are a limited number of entries, so it remove it
401+
// rather than waiting for it to expire.
402+
removeIPAccess()
395403
}
396404
}
397405
}

0 commit comments

Comments
 (0)