This file contains hidden or 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 "aws_instance" "cd-demo-web-02" { | |
| instance_type = "t2.small" | |
| ami = "${lookup(var.aws_amis, var.aws_region)}" | |
| key_name = "${var.key_name}" | |
| subnet_id = "${module.base.default_subnet_id}" | |
| vpc_security_group_ids = ["${module.base.default_security_group_id}", "${module.base.external_connections_security_group_id}"] | |
| tags { | |
| Name = "cd-demo-web-02" | |
| } |
This file contains hidden or 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
| # | |
| # Cookbook Name:: Continuous Delivery Pipline Demo Web | |
| # Recipe:: default | |
| # | |
| # Copyright (C) 2016 Steven Wade | |
| # | |
| # All rights reserved - Do Not Redistribute | |
| # | |
| Chef::Log.info "Installing chocolatey ..." |
This file contains hidden or 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
| 13:08:57.207 [go] Start to execute task: <exec command="powershell" > | |
| <arg>.\update.ps1</arg> | |
| <arg>-name %GO_PACKAGE_ARTIFACTORY_PARLIAMENT_CDP_WEB_PACKAGE_ID%</arg> | |
| <arg>-version %GO_PACKAGE_ARTIFACTORY_PARLIAMENT_CDP_WEB_VERSION%</arg> | |
| <arg>-environment system-test</arg> | |
| </exec>. | |
| 13:09:01.816 .\update.ps1 : The term '.\update.ps1' is not recognized as the name of a | |
| 13:09:01.816 cmdlet, function, script file, or operable program. Check the spelling of the | |
| 13:09:01.816 name, or if a path was included, verify that the path is correct and try again. | |
| 13:09:01.816 At line:1 char:1 |
This file contains hidden or 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
| 12:43:35.130 [go] setting environment variable 'GO_PACKAGE_ARTIFACTORY_PARLIAMENT_CDP_WEB_PACKAGE_ID' to value 'Parliament.CDP.Web' | |
| 12:43:35.130 [go] setting environment variable 'GO_PACKAGE_ARTIFACTORY_PARLIAMENT_CDP_WEB_VERSION' to value '1.0.18' | |
| 12:43:35.130 [go] setting environment variable 'GO_PACKAGE_ARTIFACTORY_PARLIAMENT_CDP_WEB_LOCATION' to value '********' | |
| 12:43:35.130 [go] setting environment variable 'GO_REVISION_GOCD_UPDATE_COOKBOOK_IN_ENVIRONMENT' to value '41c8d188b287ef30867f58686a5684d42ffca517' | |
| 12:43:35.130 [go] setting environment variable 'GO_TO_REVISION_GOCD_UPDATE_COOKBOOK_IN_ENVIRONMENT' to value '41c8d188b287ef30867f58686a5684d42ffca517' | |
| 12:43:35.130 [go] setting environment variable 'GO_FROM_REVISION_GOCD_UPDATE_COOKBOOK_IN_ENVIRONMENT' to value '41c8d188b287ef30867f58686a5684d42ffca517' | |
| 12:43:35.161 [go] Start to build parliament-cdp-web/16/deploy-to-sys-test/1/deploy-to-sys-test on WIN-84D6BQNVG02 [C:\GoAgent] | |
| 12:43:35.161 [go] Current job status: passed. |
This file contains hidden or 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
| 12:32:44.503 [go] Start to execute task: <exec command="cmd" > | |
| <arg>\c</arg> | |
| <arg>powershell . .\update.ps1</arg> | |
| <arg>-name ${env.GO_PACKAGE_ARTIFACTORY_PARLIAMENT_CDP_WEB_PACKAGE_ID}</arg> | |
| <arg>-version ${env.GO_PACKAGE_ARTIFACTORY_PARLIAMENT_CDP_WEB_VERSION}</arg> | |
| <arg>-environment system-test</arg> |
This file contains hidden or 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
| Scroll to end of logsRaw outputChange theme | |
| 15:54:52.853 [go] Job Started: 2016-03-09 15:54:52 UTC | |
| 15:54:52.853 [go] Start to prepare parliament-cdp-web/7/deploy-sys-test/1/deploy-sys-test on WIN-84D6BQNVG02 [C:\GoAgent] | |
| 15:54:52.869 [go] Start to update materials. | |
| 15:54:52.869 [go] Start updating files at revision 12e02206a6cc67b959280c61c624beb540b4b6f4 from https://stevenwade:3uB%[email protected]/parliamentarydigitalservice/gocd-update-cookbook-in-environment.git | |
| 15:54:52.869 Error while executing [git clone --branch=master https://stevenwade:3uB%[email protected]/parliamentarydigitalservice/gocd-update-cookbook-in-environment.git C:\GoAgent\pipelines\parliament-cdp-web] | |
| Make sure this command can execute manually. | |
| 15:54:52.947 [go] Job completed parliament-cdp-web/7/deploy-sys-test/1/deploy-sys-test on WIN-84D6BQNVG02 [C:\GoAgent] |
This file contains hidden or 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
| Windows PowerShell | |
| Copyright (C) 2014 Microsoft Corporation. All rights reserved. | |
| PS C:\Windows\system32> winrm get winrm/config | |
| Config | |
| MaxEnvelopeSizekb = 500 | |
| MaxTimeoutms = 60000 | |
| MaxBatchItems = 32000 | |
| MaxProviderRequests = 4294967295 | |
| Client |
This file contains hidden or 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 "aws_instance" "cd-demo-web-01" { | |
| instance_type = "t2.micro" | |
| ami = "${lookup(var.aws_amis, var.aws_region)}" | |
| key_name = "${var.key_name}" | |
| subnet_id = "${module.base.default_subnet_id}" | |
| vpc_security_group_ids = ["${module.base.default_security_group_id}", "${module.base.external_connections_security_group_id}"] | |
| tags { | |
| Name = "cd-demo-web-01" | |
| } |
This file contains hidden or 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
| aws_instance.cd-demo-web-01 (chef): Connected! | |
| 2016/03/04 12:08:04 [DEBUG] terraform-provisioner-chef: 2016/03/04 12:08:04 Uploading file to 'C:/Temp/ChefClient.ps1' | |
| 2016/03/04 12:08:08 [DEBUG] vertex root, waiting for: provider.aws (close) | |
| 2016/03/04 12:08:08 [DEBUG] vertex provisioner.chef (close), waiting for: aws_instance.cd-demo-web-01 | |
| 2016/03/04 12:08:08 [DEBUG] vertex output.cd-demo-web-01, waiting for: aws_instance.cd-demo-web-01 | |
| 2016/03/04 12:08:09 [DEBUG] vertex provider.aws (close), waiting for: aws_instance.cd-demo-web-01 | |
| 2016/03/04 12:08:12 [DEBUG] terraform-provisioner-chef: 2016/03/04 12:08:12 starting remote command: powershell -NoProfile -ExecutionPolicy Bypass -File C:/Temp/ChefClient.ps1 | |
| 2016/03/04 12:08:13 [DEBUG] vertex root, waiting for: provider.aws (close) | |
| 2016/03/04 12:08:13 [DEBUG] vertex provisioner.chef (close), waiting for: aws_instance.cd-demo-web-01 | |
| 2016/03/04 12:08:13 [DEBUG] vertex output.cd-demo-web-01, waiting for: aws_instance.cd-demo-web-01 |
This file contains hidden or 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
| Param( | |
| [string]$name , | |
| [string]$version | |
| ) | |
| $temp_file = "_update.json" | |
| if (Test-Path (temp_file)) | |
| { | |
| del $temp_file | |
| } | |
| #delete temp file. |