Error with site_name when deploy

Dear Appveyor Support,

I am working on deploying an ASP.NET app to IIS. When the build succeeds, I deploy it but encounter an error as shown in the picture below. It seems that the deployment configuration in my file is not being read, causing the site_name to be null.

Could you please let me know what I might be missing?

  1. Can you drop a link to the build being deployed and the deployment itself?

  2. Hi Mr. Feodor,

    I'm new to this, and I'm not exactly sure which link you need, but here is the link to my build:
    https://ci.appveyor.com/project/TopasFerryOps/topasferryopsnwt/builds/50614376

    And here is the link to my deployment:
    https://ci.appveyor.com/project/TopasFerryOps/topasferryopsnwt/deployment/4335105/job/em0s1ctiv6y4v4g4

    Is this what you're looking for?

    In the Environment, if I set the default site_name like in the picture below, it works, but I want to retrieve it from the deploy file instead

  3. So, that build https://ci.appveyor.com/project/TopasFerryOps/topasferryopsnwt/buil... didn't kick off the deployment because it's a PR build and deployments are disabled in PR builds. You can see in the the build log - it uploads the artifact but deployment is not happening. I can also confirm build configuration has environment deployment configured with additional settings. I believe you did manual deployment on Environments page - this case variables from the build won't be passed.

    However, you can enable deployments in PR builds on General tab of project settings in AppVeyor ("Enable deployments in Pull Requests" option). Once enabled the deployment will be started during the build and custom variables will be passed to an agent. Let me know.

  4. Yes, you're right. Now I know what the problem is. Thanks for the information

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Already uploaded files

  • 1.PNG 74.3 KB
  • 2.png 19.5 KB
  • 3.png 10.1 KB
  • 4.png 23.8 KB
Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions