Created
May 21, 2019 15:51
-
-
Save mikaelkrief/1005c76616579facb0fe75bc3b3224b6 to your computer and use it in GitHub Desktop.
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
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