-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TeamCity change in 'Ribasim' project: Connection updated
- Loading branch information
feng
authored and
root
committed
Aug 7, 2024
1 parent
4ee738e
commit 672c5b2
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package patches.projects | ||
|
||
import jetbrains.buildServer.configs.kotlin.* | ||
import jetbrains.buildServer.configs.kotlin.Project | ||
import jetbrains.buildServer.configs.kotlin.projectFeatures.AwsConnection | ||
import jetbrains.buildServer.configs.kotlin.projectFeatures.GitHubIssueTracker | ||
import jetbrains.buildServer.configs.kotlin.projectFeatures.S3Storage | ||
import jetbrains.buildServer.configs.kotlin.projectFeatures.awsConnection | ||
import jetbrains.buildServer.configs.kotlin.projectFeatures.githubIssues | ||
import jetbrains.buildServer.configs.kotlin.projectFeatures.s3Storage | ||
import jetbrains.buildServer.configs.kotlin.ui.* | ||
|
||
/* | ||
This patch script was generated by TeamCity on settings change in UI. | ||
To apply the patch, change the root project | ||
accordingly, and delete the patch script. | ||
*/ | ||
changeProject(DslContext.projectId) { | ||
features { | ||
val feature1 = find<AwsConnection> { | ||
awsConnection { | ||
id = "AmazonWebServicesAws" | ||
name = "Amazon Web Services (AWS)" | ||
regionName = "eu-west-3" | ||
credentialsType = static { | ||
accessKeyId = "AKIAQBIN2MPWXSD2IZ5F" | ||
secretAccessKey = "credentialsJSON:dba90026-9856-4f87-94d9-bab91f3f2d5c" | ||
useSessionCredentials = false | ||
stsEndpoint = "https://sts.eu-west-3.amazonaws.com" | ||
} | ||
} | ||
} | ||
feature1.apply { | ||
credentialsType = static { | ||
accessKeyId = "KwKRzscudy3GvRB8BN1Z" | ||
secretAccessKey = "credentialsJSON:86cbf3e5-724c-437d-9962-7a3f429b0aa2" | ||
useSessionCredentials = false | ||
stsEndpoint = "https://sts.eu-west-3.amazonaws.com" | ||
} | ||
param("awsAllowedInSubProjects", "") | ||
param("awsSessionDuration", "") | ||
} | ||
val feature2 = find<GitHubIssueTracker> { | ||
githubIssues { | ||
id = "PROJECT_EXT_107" | ||
displayName = "Ribasim GitHub Issues" | ||
repositoryURL = "https://github.com/Deltares/Ribasim" | ||
} | ||
} | ||
feature2.apply { | ||
} | ||
val feature3 = find<S3Storage> { | ||
s3Storage { | ||
id = "s3_ribasim" | ||
storageName = "s3" | ||
bucketName = "ribasim" | ||
bucketPrefix = "teamcity" | ||
awsEnvironment = default { | ||
awsRegionName = "eu-west-3" | ||
} | ||
credentials = accessKeys() | ||
accessKeyID = "AKIAQBIN2MPWXSD2IZ5F" | ||
accessKey = "credentialsJSON:dba90026-9856-4f87-94d9-bab91f3f2d5c" | ||
} | ||
} | ||
feature3.apply { | ||
} | ||
} | ||
} |