Improper behaviour of DM

rjayakumarrjayakumar Posts: 34
edited September 9, 2014 7:44AM in Deployment Manager
All,
We have a nuget package with only one file - an asp file.
and while deploying the below is the error and the package does not have any of the powershell files and also the path is C:\Webpages\www46
which is different in the error as below.

Any suggestions??

=======================================
Executing powershell script C:\Webpages\www46\CAP_1.8.4.6-A5\PostDeploy.ps1...
Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Webpages\www46\CAP_1.8.4.6-A5\PostDeploy.ps1:8 char:18
+ if (Test-Path <<<< $path)
+ CategoryInfo : InvalidData: (:) [Test-Path], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

2014-09-05 12:36:17 +05:30 DEBUG Return code of PowerShell script: 65524
2014-09-05 12:36:17 +05:30 INFO C:\Documents and Settings\All Users\Application Data\Red Gate\DeploymentAgent\Applications\Development\FilesToRootFolder\1.0.0.1-A_1\: updating cached size to 8.68 KB
2014-09-05 12:36:20 +05:30 INFO C:\Webpages\www46\: updating cached size to 6.74 GB
2014-09-05 12:36:20 +05:30 INFO C:\Webpages\www46\$\ was deleted. Marking for removal from referenced list.
2014-09-05 12:36:20 +05:30 INFO C:\Webpages\www46\$_\ was deleted. Marking for removal from referenced list.
2014-09-05 12:36:20 +05:30 ERROR PowerShell script 'C:\Webpages\www46\CAP_1.8.4.6-A5\PostDeploy.ps1' returned non-zero exit code: 65524. Deployment terminated.
________
Cheers,
Raghunandan

Comments

  • So, is the error that Deployment Manager appears to run a postDeploy script even when it is not present in the package?

    If what I have said above is correct, would you please check that if this script is present in another step in the same project? Is it present in earlier releases of the project?

    Thanks!

    Chirayu
    Chirayu Shishodiya
    Software Engineer - Deployment Manager
    Red Gate
  • Chirayu
    Many thanks for your response.
    There are no other steps or packages involved in this?
    ________
    Cheers,
    Raghunandan
  • My colleague informs me that you might be using RedGatePackageDirectoryPath variable and setting it to this value:
    C:\Webpages\www46\
    

    If you're using RedGatePackageDirectoryPath, you should also set RedGatePurgePackageDirectoryBeforeCopy to True to clean the target directory before copying. If the directory is not being cleaned and if there is a script there from previous deployments it will be picked up by Deployment Manager and run.

    Does this fix your issue?
    Chirayu Shishodiya
    Software Engineer - Deployment Manager
    Red Gate
Sign In or Register to comment.