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

teamcity_build_config - Build Step Ordering #43

Closed
MattHodge opened this issue Dec 17, 2018 · 5 comments
Closed

teamcity_build_config - Build Step Ordering #43

MattHodge opened this issue Dec 17, 2018 · 5 comments
Assignees
Labels
enhancement New feature or request SDK Related to upstream SDK dependency
Milestone

Comments

@MattHodge
Copy link
Contributor

There is currently no way to control the build step ordering inside the teamcity_build_config resource.

Given the following Terraform:

resource "teamcity_project" "step_ordering" {
  name = "Build Step Ordering"
}

resource "teamcity_build_config" "step_ordering" {
	name = "build config test"
	project_id = "${teamcity_project.step_ordering.id}"

	step {
		type = "cmd_line"
		name = "01 - First"
		code = "echo \"Hello First\""
	}

	step {
		type = "cmd_line"
		name = "02 - Second"
		code = "echo \"Hello Second\""
	}

	step {
		type = "cmd_line"
		name = "03 - Third"
		code = "echo \"Hello Third\""
	}
}

The steps are created in a different order:

image

@cvbarros cvbarros self-assigned this Dec 18, 2018
@cvbarros cvbarros added the enhancement New feature or request label Dec 18, 2018
@ss-remygreinhofer
Copy link

Would "simply" changing the schema to having a list of steps be right way to solve this issue?

@cvbarros
Copy link
Owner

cvbarros commented Feb 1, 2019

This has been fixed locally, I'm delaying the push because it will be a breaking change for existing state, so I'm thinking how the best approach would be - to either start creating state migrations or just a hard compatibility break (which would adhere to current SemVer under 1.x).

@cvbarros cvbarros added this to the 0.6.0 milestone Jul 31, 2019
@cvbarros cvbarros added the SDK Related to upstream SDK dependency label Jul 31, 2019
@lmayorga1980
Copy link

This is a very nice to have. Currently I have different results during changes on the steps.

@augustgerro
Copy link

Any ideas on how to work around for now?

Let's say, I have three steps with:

  1. build a docker container
  2. push it
  3. deploy it

When steps go not one after one it's broke all builds.

@cvbarros
Copy link
Owner

cvbarros commented Apr 5, 2020

Fixed via #70

@cvbarros cvbarros closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SDK Related to upstream SDK dependency
Projects
None yet
Development

No branches or pull requests

5 participants