Skip to content

Commit

Permalink
Updates for test account id
Browse files Browse the repository at this point in the history
Signed-off-by: Tanner Lewis <[email protected]>
  • Loading branch information
lewijacn committed Sep 3, 2024
1 parent 0315e81 commit 9cf45bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions jenkins/migrationIntegPipelines/rfsBackfillE2EPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def migration_cdk_context = """
"openAccessPolicyEnabled": true,
"domainRemovalPolicy": "DESTROY",
"artifactBucketRemovalPolicy": "DESTROY",
"kafkaBrokerServiceEnabled": true,
"trafficReplayerServiceEnabled": false,
"reindexFromSnapshotServiceEnabled": true,
"sourceClusterEndpoint": "<SOURCE_CLUSTER_ENDPOINT>"
Expand Down Expand Up @@ -68,8 +67,12 @@ defaultIntegPipeline(
"--junitxml=${test_result_file} ${test_dir}/backfill_tests.py " +
"--unique_id ${uniqueId} " +
"-s"
sh "sudo --preserve-env ./awsRunIntegTests.sh --command '${command}' " +
"--test-result-file ${test_result_file} " +
"--stage ${params.STAGE}"
withCredentials([string(credentialsId: 'migration-test-account-id', variable: 'MIGRATION_TEST_ACCOUNT_ID')]) {
withAWS(role: 'JenkinsDeploymentRole', roleAccount: "${MIGRATION_TEST_ACCOUNT_ID}", duration: 3600, roleSessionName: 'jenkins-session') {
sh "sudo --preserve-env ./awsRunIntegTests.sh --command '${command}' " +
"--test-result-file ${test_result_file} " +
"--stage ${params.STAGE}"
}
}
}
)
8 changes: 4 additions & 4 deletions vars/defaultIntegPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def call(Map config = [:]) {
if (skipCaptureProxyOnNodeSetup) {
baseCommand += " --skip-capture-proxy"
}
withCredentials([string(credentialsId: 'deployment-account-id', variable: 'DEPLOYMENT_ACCOUNT_ID')]) {
withAWS(role: 'JenkinsDeploymentRole', roleAccount: "${DEPLOYMENT_ACCOUNT_ID}", duration: 5400, roleSessionName: 'jenkins-session') {
withCredentials([string(credentialsId: 'migration-test-account-id', variable: 'MIGRATION_TEST_ACCOUNT_ID')]) {
withAWS(role: 'JenkinsDeploymentRole', roleAccount: "${MIGRATION_TEST_ACCOUNT_ID}", duration: 5400, roleSessionName: 'jenkins-session') {
sh baseCommand
}
}
Expand Down Expand Up @@ -133,8 +133,8 @@ def call(Map config = [:]) {
"--junitxml=${test_result_file} ${test_dir}/replayer_tests.py " +
"--unique_id ${uniqueId} " +
"-s"
withCredentials([string(credentialsId: 'deployment-account-id', variable: 'DEPLOYMENT_ACCOUNT_ID')]) {
withAWS(role: 'JenkinsDeploymentRole', roleAccount: "${DEPLOYMENT_ACCOUNT_ID}", duration: 3600, roleSessionName: 'jenkins-session') {
withCredentials([string(credentialsId: 'migration-test-account-id', variable: 'MIGRATION_TEST_ACCOUNT_ID')]) {
withAWS(role: 'JenkinsDeploymentRole', roleAccount: "${MIGRATION_TEST_ACCOUNT_ID}", duration: 3600, roleSessionName: 'jenkins-session') {
sh "sudo --preserve-env ./awsRunIntegTests.sh --command '${command}' " +
"--test-result-file ${test_result_file} " +
"--stage ${params.STAGE}"
Expand Down

0 comments on commit 9cf45bc

Please sign in to comment.