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

 

03 Oct, 2024 07:07 PM
01 Oct, 2024 05:06 PM
01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM