SUccessfull build but post and pre deploy script didn't run

mark.garcia's Avatar

mark.garcia

16 Sep, 2020 08:42 AM

https://ci.appveyor.com/project/BuchananGroup/hometesterclubdb/builds/35231189

I was expecting to have those scripts run to manipulate some date before or after the deployment but that didn't seem to work.
Do I need to specify anything else in the yaml file? I've attahed that yaml file and also the reference to the post ande pre deploy scripts.

PRE DEPLOYMENT script
IF (EXISTS (SELECT *
                 FROM INFORMATION_SCHEMA.TABLES
                 WHERE TABLE_SCHEMA = 'dbo'
                 AND TABLE_NAME = 'users'))
BEGIN
    --Do Stuff
    print('has users')
END
ELSE
    print('has NO users')

POST DEPLOYMENT SCRIPT
Select * from Users;

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • edit1.png 19.5 KB
  • appveyor.yml 395 Bytes

Attached Files

You can attach files up to 10MB

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