github.com/GoogleCloudPlatform/terraformer@v0.8.18/tests/octopusdeploy/project.tf (about) 1 resource "octopusdeploy_project" "deploymark_api" { 2 name = "Deploymark API" 3 description = "Annotate deployments" 4 lifecycle_id = octopusdeploy_lifecycle.stage_prod.id 5 project_group_id = octopusdeploy_project_group.utilities.id 6 skip_machine_behavior = "SkipUnavailableMachines" 7 8 deployment_step { 9 windows_service { 10 executable_path = "batch_processor\\batch_processor_service.exe" 11 service_name = "Billing Batch Processor" 12 step_name = "Deploy Billing Batch Processor Windows Service" 13 step_condition = "failure" 14 package = "Billing.BatchProcessor" 15 json_file_variable_replacement = "appsettings.json" 16 17 target_roles = [ 18 "Billing-Batch-Processor", 19 ] 20 } 21 22 inline_script { 23 step_name = "Cleanup Temporary Files" 24 script_type = "PowerShell" 25 26 script_body = <<EOF 27 $oldFiles = Get-ChildItem -Path 'C:\billing_archived_jobs' 28 Remove-Item $oldFiles -Force -Recurse 29 EOF 30 31 target_roles = [ 32 "Billing-Batch-Processor", 33 ] 34 } 35 } 36 }