Multiple build configurations taking long time

Thomas's Avatar

Thomas

30 May, 2022 03:39 PM

Hi, I was wondering something.

We have a ASP.NET MVC 5 project with multiple Web.config files. One for each environment, like hotfix, development and production. These config files have different environment variables. And because of this, multiple builds are created for each new PR created.

Is there a way to reduce the number of builds? Considering the source code is exactly the same, it's just the environment variables from the web.config files that are different, it seems unneccessary with that many builds. I'm rather new to the whole DevOps, so I'm not really sure what to do. Thanks :)

  1. Support Staff 1 Posted by Feodor Fitsner on 31 May, 2022 04:56 PM

    Feodor Fitsner's Avatar

    Hi Thomas,

    You can just use your own build commands and build all configurations in the same build job, kind of:

    build_script:
    - msbuild your-solution.sln /p:Configuration=testbox /p:OutputPath=out\testbox
    - msbuild your-solution.sln /p:Configuration=testbox-batch /p:OutputPath=out\testbox-batch
    ...
    

    And then upload produced files/folders to artifacts like described here: https://www.appveyor.com/docs/packaging-artifacts/

  2. Feodor Fitsner closed this discussion on 31 Jul, 2022 09:02 PM.

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

13 Apr, 2024 04:43 PM
12 Apr, 2024 04:56 PM
11 Apr, 2024 11:16 PM
09 Apr, 2024 10:59 PM
08 Apr, 2024 07:50 AM

 

06 Apr, 2024 04:06 AM
05 Apr, 2024 01:26 PM
05 Apr, 2024 10:39 AM
04 Apr, 2024 03:41 PM
31 Mar, 2024 05:51 PM
30 Mar, 2024 01:59 PM