1
期間停止部署目錄我有一個項目結構,看起來大致是這樣的MsDeploy CopyAllFilesToSingleFolderForMsdeploy
Root
MyProject.Web
App
js
sass
img
other stuff..
other stuff...
other stuff...
出於某種原因,msdeploy突然停止複製了我的sass
目錄。有些事情我知道從經驗來檢查:
- 它包括在的csproj。這是通過App目錄
<Content Include="App\**\*" />
上的通配符完成的。我在幾個項目中使用過這個,事實上它以前在這個項目上工作。 - 它是在webdeploy的
CollectFilesFromContent
步驟中列出。
雖然它是在CopyAllFilesToSingleFolderForMsdeploy
一步省略
我從CI通過指向MsBuild
在MyProject.Web.csproj
以下參數
/p:DeployTarget=MSDeployPublish /p:Configuration=QA /p:MsDeployServiceUrl="https://${bamboo.deployServer}:8172/MsDeploy.axd";DeployIisAppPath="${bamboo.deploySite}";username="${bamboo.deployUser}";password="${bamboo.deployPassword}" /p:SolutionDir=${bamboo.build.working.directory}\ /p:DeployOnBuild=True /p:MSDeployPublishMethod=WMSVC /p:AllowUntrustedCertificate=True /p:AllowUnsafeBlocks=true
此推出,這是我的日誌截斷副本應該證明我在說什麼
build 12-Feb-2016 18:57:04 CollectFilesFromContent:
build 12-Feb-2016 18:57:04 Gather all files from Project items @(Content). Adding:
build 12-Feb-2016 18:57:04
App\img\loading.gif;
<...snip...>
App\js\app.js;
App\js\directives\adminNavigation.js;
<...snip...>
App\js\screens\myTime\listView.html;
<...snip...>
App\sass\admin.css;
App\sass\admin.scss;
App\sass\home.css;
App\sass\home.scss;
App\sass\lib\_normalize.scss;
App\sass\login.css;
App\sass\login.scss;
<...snip...>
build 12-Feb-2016 18:57:04 CollectFilesFromIntermediateSatelliteAssembliesWithTargetPath:
build 12-Feb-2016 18:57:04 Gather all files from Project output (IntermediateSatelliteAssembliesWithTargetPath). Adding:
build 12-Feb-2016 18:57:04 CollectFilesFromReference:
build 12-Feb-2016 18:57:04 Gather all files from Project items @(ReferenceCopyLocalPaths,ReferenceComWrappersToCopyLocal,ResolvedIsolatedComModules,_DeploymentLooseManifestFile,NativeReferenceFile).
build 12-Feb-2016 18:57:04 CollectFilesFromAllExtraReferenceFiles:
build 12-Feb-2016 18:57:04 Gather all files from Project items @(AllExtraReferenceFiles). Adding:
build 12-Feb-2016 18:57:04 CollectFilesFrom_SourceItemsToCopyToOutputDirectory:
build 12-Feb-2016 18:57:04 Gather all files from Project items @(_SourceItemsToCopyToOutputDirectoryAlways,_SourceItemsToCopyToOutputDirectory). Adding:
build 12-Feb-2016 18:57:04 bin\Version.txt
build 12-Feb-2016 18:57:04 CollectFilesFrom_binDeployableAssemblies:
build 12-Feb-2016 18:57:04 Gather all files from Project items @(_binDeployableAssemblies). Adding:
build 12-Feb-2016 18:57:05 PipelineCollectFilesPhase:
build 12-Feb-2016 18:57:05 Publish Pipeline Collect Files Phase
build 12-Feb-2016 18:57:05 PreTransformWebConfig:
build 12-Feb-2016 18:57:05 Found The following for Config tranformation:
build 12-Feb-2016 18:57:05 Web.config
build 12-Feb-2016 18:57:05 Creating directory "E:\CI_BUILD_DIRECTORY\obj\QA\TransformWebConfig\transformed\".
build 12-Feb-2016 18:57:05 Creating directory "E:\CI_BUILD_DIRECTORY\obj\QA\TransformWebConfig\transformed\Views\".
build 12-Feb-2016 18:57:05 Copying Web.config to obj\QA\TransformWebConfig\original\Web.config.
build 12-Feb-2016 18:57:05 Copying E:\CI_BUILD_DIRECTORY\Web.QA.config to obj\QA\TransformWebConfig\assist\Web.config.
build 12-Feb-2016 18:57:05 TransformWebConfigCore:
<...snip...>
build 12-Feb-2016 18:57:05 Transformation succeeded
build 12-Feb-2016 18:57:05 PostTransformWebConfig:
build 12-Feb-2016 18:57:05 Transformed Web.config using E:\CI_BUILD_DIRECTORY\Web.QA.config into obj\QA\TransformWebConfig\transformed\Web.config.
build 12-Feb-2016 18:57:05 PipelineTransformPhase:
build 12-Feb-2016 18:57:05 Publish Pipeline Transform Phase
build 12-Feb-2016 18:57:05 PreAutoParameterizationWebConfigConnectionStrings:
build 12-Feb-2016 18:57:05 Creating directory "E:\CI_BUILD_DIRECTORY\obj\QA\CSAutoParameterize\transformed\Views\".
build 12-Feb-2016 18:57:05 Copying Views\Web.config to obj\QA\CSAutoParameterize\original\Views\Web.config.
build 12-Feb-2016 18:57:05 Copying obj\QA\TransformWebConfig\transformed\Web.config to obj\QA\CSAutoParameterize\original\Web.config.
build 12-Feb-2016 18:57:05 AutoParameterizationWebConfigConnectionStringsCore:
build 12-Feb-2016 18:57:05 Transforming Source File: E:\CI_BUILD_DIRECTORY\Views\Web.config
<...snip...>
build 12-Feb-2016 18:57:05 Transformation succeeded
build 12-Feb-2016 18:57:05 Transforming Source File: E:\CI_BUILD_DIRECTORY\obj\QA\TransformWebConfig\transformed\Web.config
build 12-Feb-2016 18:57:05 Applying Transform File: <?xml version="1.0"?>
<...snip...>
build 12-Feb-2016 18:57:05 Transformation succeeded
build 12-Feb-2016 18:57:05 PostAutoParameterizationWebConfigConnectionStrings:
build 12-Feb-2016 18:57:05 Auto ConnectionString Transformed Views\Web.config into obj\QA\CSAutoParameterize\transformed\Views\Web.config.
build 12-Feb-2016 18:57:05 Auto ConnectionString Transformed obj\QA\TransformWebConfig\transformed\Web.config into obj\QA\CSAutoParameterize\transformed\Web.config.
build 12-Feb-2016 18:57:05 PipelineMsdeploySpecificTransformPhase:
build 12-Feb-2016 18:57:05 Publish Pipeline Deploy phase Stage PipelineMsdeploySpecificTransformPhase
build 12-Feb-2016 18:57:05 CopyAllFilesToSingleFolderForMsdeploy:
build 12-Feb-2016 18:57:05 Creating directory "obj\QA\Package\PackageTmp".
build 12-Feb-2016 18:57:05 Copying all files to temporary location below for package/publish:
build 12-Feb-2016 18:57:05 obj\QA\Package\PackageTmp.
build 12-Feb-2016 18:57:05 Copying bin\MyProject.Web.dll to obj\QA\Package\PackageTmp\bin\MyProject.Web.dll.
build 12-Feb-2016 18:57:05 Copying bin\MyProject.Web.pdb to obj\QA\Package\PackageTmp\bin\MyProject.Web.pdb.
build 12-Feb-2016 18:57:05 Copying App\img\loading.gif to obj\QA\Package\PackageTmp\App\img\loading.gif.
<...snip...>
build 12-Feb-2016 18:57:05 Copying App\js\app.js to obj\QA\Package\PackageTmp\App\js\app.js.
build 12-Feb-2016 18:57:05 Copying App\js\directives\adminNavigation.js to obj\QA\Package\PackageTmp\App\js\directives\adminNavigation.js.
<...snip...>
build 12-Feb-2016 18:57:05 Copying App\js\screens\myTime\listView.html to obj\QA\Package\PackageTmp\App\js\screens\myTime\listView.html.
<...other files BUT NOT the sass directory...>
因此, s目錄被收集起來進行部署,但實際上並未部署。我對如何進一步調試這個問題感到茫然!
您確定這些文件已更改? MSDeploy默認情況下僅部署已更改的文件。您也可以嘗試在本地部署或部署到不同的目標,以查看是否發生相同的問題。 – chief7
@ chief7它實際上刪除他們的源代碼,但這是一個奇妙的想法。本地部署也不會部署這些文件!我不知道這意味着什麼,但是這大大縮短了我的反饋循環 –