3

I worked on DevOps with VSTS. Currently I used the “PowerShell” Task to run the PowerShell script. But unfortunately my VSTS repository name having space (for example “WebApp Demo”), that’s why I am getting the issue while executing the PowerShell script at VSTS release level.

[error] Process completed with exit code 0 and had 1 error(s) written to the error stream.

PowerShell Task configuration in VSTS release definition enter image description here

For resolving the above error I followed so many blogs but issue will be the same.

  1. Windows Powershell doesn't seem to accept target paths with spaces
  2. Run a PowerShell Script with Space in the Path
  3. Windows PowerShell Cannot Run Script Whose Path Contains Spaces
3
  • This is a long shot but did you try encapsulating the script path in double quotes? Commented Feb 9, 2018 at 18:29
  • It should work, add System.debug variable and set the value to true, then start release and share this log on the OneDrive. Commented Feb 12, 2018 at 2:38
  • @Persistent13, I already tried with double quotes, but it won't be work properly. Commented Feb 12, 2018 at 5:29

1 Answer 1

2

Based on the log, you the value of ConfigFilePath is the path that contains space.

Change argument to:

-webConfigFilePath "$(ConfigFilePath)"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.