Skip to content

Commit

Permalink
Merge pull request #125 from jtnord/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlatombe committed Feb 10, 2022
2 parents 9ffa1a4 + 5fcd8bb commit 3551d56
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -226,10 +226,13 @@ public String getDisplayName() {
}

private static AssumeRoleRequest createAssumeRoleRequest(String iamRoleArn, String iamExternalId) {
return new AssumeRoleRequest()
AssumeRoleRequest retval = new AssumeRoleRequest()
.withRoleArn(iamRoleArn)
.withExternalId(iamExternalId)
.withRoleSessionName("Jenkins");
if (iamExternalId != null && !iamExternalId.isEmpty()) {
return retval.withExternalId(iamExternalId);
}
return retval;
}

/**
Expand Down

0 comments on commit 3551d56

Please sign in to comment.