How to override default build script for a nightly build?

Gary McLean Hall's Avatar

Gary McLean Hall

23 Jan, 2018 11:06 AM

I have a single bitbucket repo used by two AppVeyor projects. Project 1 is a build-on-commit CI system. Project 2 is intended to be a nightly-build system which does extra, slower things. I've set up on the cron job fine and I've managed to stop Project 2 from building on commit, as it should be nightly only. But, I can't figure out how to tell Project 2 to run a different build script. I thought the UI settings took precedence over the appveyor.yml settings, but I have since read that this is not the case and it's wholly one or the other.

Without duplicating the appveyor.yml for a 1 line (out of 50) change, which would cause a maintenance issues, how can I say to Project 2: "Use this build script, not the default" ?

Thanks!

  1. 1 Posted by Ilya Finkelshte... on 23 Jan, 2018 04:49 PM

    Ilya Finkelshteyn's Avatar

    It can be the same appveyor.yml and the same script, but depending on the value of APPVEYOR_SCHEDULED_BUILD environment variable script can go one code path or another.

  2. 2 Posted by Gary McLean Hal... on 23 Jan, 2018 05:44 PM

    Gary McLean Hall's Avatar

    That has worked, thank you very much for the prompt response, Ilya.

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:26 AM.

Comments are currently closed for this discussion. You can start a new one.

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

09 Jul, 2026 04:35 PM
07 Jul, 2026 07:22 PM
30 Jun, 2026 08:51 PM
26 Jun, 2026 03:33 PM
25 Jun, 2026 12:31 AM

 

05 Jun, 2026 07:28 PM
29 May, 2026 02:17 PM
28 May, 2026 06:46 PM
21 May, 2026 04:32 AM
12 May, 2026 05:50 PM
12 May, 2026 04:16 PM