0
私は解決できなかった問題で一日中戦っています。問題は、私がJenkins CI環境を別のサーバーに移行する過程で、Jenkinsで別のジョブを作成してライブ展開に対応していることです。ライブ展開は、開発サーバーではなく新しいサーバーで行われます。私はプロセスの終わりに問題を抱えています。ディレクトリをアップロードできませんでした:MSBuildとJenkinsの問題
UATへの展開のための出力は次のようになります。
GenerateSampleDeployScript:
Sample script for deploying this package is generated at the following location:
C:\Builds\Mcfc\Service\UAT\Mcfc\Build\WebServices\FulfillmentWebService\obj\UAT\Package\FulfillmentWebService.deploy.cmd
For this sample script, you can change the deploy parameters by changing the following file:
C:\Builds\Mcfc\Service\UAT\Mcfc\Build\WebServices\FulfillmentWebService\obj\UAT\Package\FulfillmentWebService.SetParameters.xml
Done Building Project "C:\Builds\Mcfc\Service\UAT\Mcfc\Build\WebServices\FulfillmentWebService\FulfillmentWebService.csproj" (Package target(s)).
Done Building Project "C:\Builds\Mcfc\Service\UAT\Mcfc\scripts\main.xml" (Transfer target(s)).
Build succeeded.
しかしリターンを生きるために、展開、この:
GenerateSampleDeployScript:
Sample script for deploying this package is generated at the following location:
C:\Builds\Mcfc\Service\Production\Mcfc\Build\WebServices\FulfillmentWebService\obj\Production\Package\FulfillmentWebService.deploy.cmd
For this sample script, you can change the deploy parameters by changing the following file:
C:\Builds\Mcfc\Service\Production\Mcfc\Build\WebServices\FulfillmentWebService\obj\Production\Package\FulfillmentWebService.SetParameters.xml
Done Building Project "C:\Builds\Mcfc\Service\Production\Mcfc\Build\WebServices\FulfillmentWebService\FulfillmentWebService.csproj" (Package target(s)).
C:\Builds\Mcfc\Service\Production\Mcfc\scripts\Production.xml(143,5): error : CDUP successful. "/Mcfc/Production/SOA/AuctionWebService" is current directory.
C:\Builds\Mcfc\Service\Production\Mcfc\scripts\Production.xml(143,5): error :
C:\Builds\Mcfc\Service\Production\Mcfc\scripts\Production.xml(143,5): error : Couldn't upload directory.
Done Building Project "C:\Builds\Mcfc\Service\Production\Mcfc\scripts\Production.xml" (Transfer target(s)) -- FAILED.
Build FAILED.
次のように展開スクリプトのrelavant部分は、以下のとおりです。
142 <Target Name="Transfer" DependsOnTargets="Package">
143 <FtpUploadDirectoryContent
144 ServerHost="secret"
145 Port="21"
146 Username="secret"
147 Password="secret"
148 LocalDirectory="$(LocalBuild)\WebServices\AuctionWebService\obj\$(Configuration)\Package\PackageTmp"
149 RemoteDirectory="Mcfc/$(Configuration)/SOA/AuctionWebService"
150 Recursive="true"
151 />
私は1日中この問題を抱えていたので、すべての助けを歓迎します。
おかげで、
サチン