Skip to content

Instantly share code, notes, and snippets.

@mikaelkrief
Created May 21, 2019 15:51
Show Gist options
  • Save mikaelkrief/1005c76616579facb0fe75bc3b3224b6 to your computer and use it in GitHub Desktop.
Save mikaelkrief/1005c76616579facb0fe75bc3b3224b6 to your computer and use it in GitHub Desktop.
resource "azuredevops_build_definition" "build-def1" {
.........
designer_phase {
name = "phase1"
step {
display_name = "teststep"
task_id = "d9bafed4-0b18-4f58-968d-86655b4d2ce9"
task_version = "2.*"
always_run = false
reference_name = "testouput"
inputs = {
failOnStderr = "false"
script = "echo Write your commands here\necho Use the environment variables input below to pass secret variables to this script"
workingDirectory = ""
}
}
step {
display_name = "teststep2"
task_id = "d9bafed4-0b18-4f58-968d-86655b4d2ce9"
task_version = "2.*"
enabled = false #Optionnal
continue_on_error = false #Optionnal
condition = "always()" #Optionnal
timeout_in_minutes = 50 #Optionnal
inputs = {
failOnStderr = "false"
script = "echo Write your step 2"
workingDirectory = "$$(Buid.SourcesDirectory)"
}
#Optionnal
environment_variables = {
var1 = "key1"
var2 = "key2"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment