Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance build configuration step to support conditions #114

Open
AraKhachatryan opened this issue Jun 27, 2021 · 0 comments
Open

Enhance build configuration step to support conditions #114

AraKhachatryan opened this issue Jun 27, 2021 · 0 comments

Comments

@AraKhachatryan
Copy link

AraKhachatryan commented Jun 27, 2021

Enhance the resource build configuration to support:

  • execution mode
  • multiple execution conditions.

From now on, the execution mode and conditions for the build configuration step can be defined in following way:

resource "teamcity_project" "project" {
  name = "My Project"
}

resource "teamcity_build_config" "build" {
  name        = "BuildRelease"
  description = "Build 'My Project'"
  project_id  = teamcity_project.project.id

  settings {
    build_number_format = "1.2.%build.counter%"
  }

  step {
    type = "cmd_line"
    name = "build_script"
    file = "./build.sh"
    args = "default_target --verbose"
    mode = "execute_if_success"
    condition {
        parameter_name = "teamcity.build.branch"
        operator = "DOES_NOT_EQUAL"
        value = "release"
    }
    condition {
        parameter_name = "teamcity.build.id"
        operator = "EQUALS"
        value = "123"
    }
  }
}
AraKhachatryan added a commit to AraKhachatryan/terraform-provider-teamcity that referenced this issue Jun 30, 2021
    - Execution mode (execution policy), which defines how a build configuration step will execute regarding others.
    - Parameter-based execution conditions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant