sitecore - Error deploying solution using Octopus deploy -


i have web project written in sitecore 8/ucommerce. using teamcity compile , package project , octopus deploy push out. when commit svn teamcity picks changes, compiles , packages , octopus deploys dev environment. works well. when try promote test error...

error running conventions; running failure conventions... fatal
10:24:19 deployment on tentacle failed.

in project have post deploy script (postdeploy.ps1) remove unwanted config files. there 1 line...

.\deleteconfig.exe $octopusenvironmentname 

i changed from..

.\deleteconfig.exe $octopusparameters['octopus.environment.name'] 

due article read, hasn't changed error. have tried..

.\deleteconfig.exe $octopusparameters['octopusenvironmentname'] 

again no effect. if comment out line of code no longer error.

i have been trying fix sometime now, read , followed articles , post can find on problem cannot find fix.

a slight curveball second project deploy in way. first sitecore/ucommerce , in postdeploy.ps1 line

.\deleteconfig.exe $octopusparameters['octopus.environment.name'] 

works perfectly.

any or pointers appreciated.

  1. you don't need post deploy script there community task cleans configuration files. it's @ https://library.octopusdeploy.com/step-templates/9a2b84db-2940-4d9a-b61f-c82df35cee6c/actiontemplate-file-system-clean-configuration-transforms.

  2. if want way, use poweshell this:

    get-childitem -filter web.*.config l remove-item


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -