Skip to content

Commit

Permalink
Merge pull request #215 from hashicorp/f/updating-teamcity
Browse files Browse the repository at this point in the history
tooling: updating the teamcity configuration
  • Loading branch information
manicminer authored Jun 22, 2023
2 parents 44cc8c9 + b89ba4d commit 1b1663b
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .teamcity/components/build_azure.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: MPL-2.0
*/

import jetbrains.buildServer.configs.kotlin.v2019_2.ParametrizedWithType
import jetbrains.buildServer.configs.kotlin.ParametrizedWithType

class ClientConfiguration(var clientId: String,
var clientSecret: String,
Expand Down
8 changes: 4 additions & 4 deletions .teamcity/components/build_components.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* SPDX-License-Identifier: MPL-2.0
*/

import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.GolangFeature
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.ScriptBuildStep
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule
import jetbrains.buildServer.configs.kotlin.*
import jetbrains.buildServer.configs.kotlin.buildFeatures.GolangFeature
import jetbrains.buildServer.configs.kotlin.buildSteps.ScriptBuildStep
import jetbrains.buildServer.configs.kotlin.triggers.schedule

// NOTE: in time this could be pulled out into a separate Kotlin package

Expand Down
2 changes: 1 addition & 1 deletion .teamcity/components/build_config_pull_request.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: MPL-2.0
*/

import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.*

class pullRequest(displayName: String, environment: String) {
val displayName = displayName
Expand Down
2 changes: 1 addition & 1 deletion .teamcity/components/build_config_service.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: MPL-2.0
*/

import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.*

class serviceDetails(name: String, displayName: String, environment: String) {
val packageName = name
Expand Down
4 changes: 2 additions & 2 deletions .teamcity/components/project.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* SPDX-License-Identifier: MPL-2.0
*/

import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
import jetbrains.buildServer.configs.kotlin.BuildType
import jetbrains.buildServer.configs.kotlin.Project

const val providerName = "azurestack"

Expand Down
2 changes: 1 addition & 1 deletion .teamcity/components/vcs_root.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: MPL-2.0
*/

import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot
import jetbrains.buildServer.configs.kotlin.vcs.GitVcsRoot

object providerRepository : GitVcsRoot({
name = "terraform-provider-azurestack"
Expand Down
11 changes: 6 additions & 5 deletions .teamcity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@

<project>
<modelVersion>4.0.0</modelVersion>
<name>TeamCity Config DSL Script</name>
<groupId>Configuration-As-Code</groupId>
<artifactId>Configuration-As-Code</artifactId>

<name>Terraform-Provider-AzureStack Config DSL Script</name>
<groupId>TerraformProviderAzureStack</groupId>
<artifactId>TerraformProviderAzureStack</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
Expand Down Expand Up @@ -105,13 +106,13 @@
<dependencies>
<dependency>
<groupId>org.jetbrains.teamcity</groupId>
<artifactId>configs-dsl-kotlin</artifactId>
<artifactId>configs-dsl-kotlin-latest</artifactId>
<version>${teamcity.dsl.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.teamcity</groupId>
<artifactId>configs-dsl-kotlin-plugins</artifactId>
<artifactId>configs-dsl-kotlin-plugins-latest</artifactId>
<version>1.0-SNAPSHOT</version>
<type>pom</type>
<scope>compile</scope>
Expand Down
4 changes: 2 additions & 2 deletions .teamcity/settings.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import AzureStack
import ClientConfiguration
import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.*

version = "2020.2"
version = "2023.05"

var clientId = DslContext.getParameter("clientId", "")
var clientSecret = DslContext.getParameter("clientSecret", "")
Expand Down

0 comments on commit 1b1663b

Please sign in to comment.